Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008396/0.0008396, allocations: 99.08 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.192e-05/2.187e-05, allocations: 4.219 kB / 343.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 51.48 MB / 395.3 MB, free: 4.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3756/0.4786, allocations: 87.31 MB / 482.6 MB, free: 5.598 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.4788, allocations: 89.62 kB / 482.7 MB, free: 5.547 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02664/0.5055, allocations: 10.49 MB / 493.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.5055, allocations: 0 / 493.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.671e-05/0.5056, allocations: 14.06 kB / 493.2 MB, free: 12.84 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001578/0.5072, allocations: 0.805 MB / 494 MB, free: 12.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.5072, allocations: 8.031 kB / 494 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.5074, allocations: 63.25 kB / 494.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007466/0.5082, allocations: 401 kB / 494.4 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.5082, allocations: 19.98 kB / 494.5 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.589e-05/0.5083, allocations: 28 kB / 494.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005698/0.5089, allocations: 291.2 kB / 494.8 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007193/0.5096, allocations: 431.9 kB / 495.2 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.5096, allocations: 0 / 495.2 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.169e-05/0.5097, allocations: 7.953 kB / 495.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.5097, allocations: 12 kB / 495.2 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.5123, allocations: 1.771 MB / 497 MB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007566/0.5131, allocations: 356.2 kB / 497.3 MB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003862/0.5135, allocations: 210.5 kB / 497.5 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.162e-05/0.5136, allocations: 12.31 kB / 497.6 MB, free: 9.094 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003866/0.514, allocations: 246.1 kB / 497.8 MB, free: 8.895 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 1.964e-06/0.514, allocations: 0 / 497.8 MB, free: 8.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0005986/0.5146, allocations: 349.4 kB / 498.1 MB, free: 8.625 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.5147, allocations: 118.3 kB / 498.3 MB, free: 8.488 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.515, allocations: 277.7 kB / 498.5 MB, free: 8.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.64e-05/0.515, allocations: 29.7 kB / 498.6 MB, free: 8.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.5152, allocations: 253 kB / 498.8 MB, free: 8.043 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.5153, allocations: 138.1 kB / 498.9 MB, free: 7.926 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.005e-05/0.5154, allocations: 0 / 498.9 MB, free: 7.926 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.5155, allocations: 360.4 kB / 499.3 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.5157, allocations: 100.9 kB / 499.4 MB, free: 7.527 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.516, allocations: 236.4 kB / 499.6 MB, free: 7.297 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.5162, allocations: 130.5 kB / 499.7 MB, free: 7.215 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.5162, allocations: 0 / 499.7 MB, free: 7.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007159/0.517, allocations: 416.8 kB / 0.4884 GB, free: 6.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006119/0.5176, allocations: 1.337 MB / 0.4897 GB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.5176, allocations: 4 kB / 0.4897 GB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002275/0.5178, allocations: 76.69 kB / 0.4898 GB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.5182, allocations: 95.52 kB / 0.4899 GB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.5197, allocations: 1.627 MB / 0.4915 GB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/0.5202, allocations: 61.31 kB / 0.4915 GB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/0.5202, allocations: 19.88 kB / 0.4916 GB, free: 3.672 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.206e-06/0.5202, allocations: 4 kB / 0.4916 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000586/0.5208, allocations: 356.4 kB / 0.4919 GB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.5208, allocations: 4.062 kB / 0.4919 GB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001958/0.521, allocations: 78.33 kB / 0.492 GB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003449/0.5214, allocations: 95.28 kB / 0.4921 GB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001421/0.5228, allocations: 1.63 MB / 0.4937 GB, free: 1.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.5232, allocations: 51.72 kB / 0.4937 GB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.5233, allocations: 15.62 kB / 0.4937 GB, free: 1.633 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001908/0.5234, allocations: 128 kB / 0.4939 GB, free: 1.5 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005829/0.524, allocations: 350.7 kB / 0.4942 GB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.048e-05/0.5241, allocations: 39.53 kB / 0.4942 GB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006184/0.5247, allocations: 391.6 kB / 0.4946 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.5248, allocations: 4 kB / 0.4946 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.5248, allocations: 0 / 0.4946 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.5248, allocations: 2.906 kB / 0.4946 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.5261, allocations: 0.9198 MB / 0.4955 GB, free: 144 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.5261, allocations: 0 / 0.4955 GB, free: 144 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/0.5265, allocations: 79.27 kB / 0.4956 GB, free: 68 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/0.5267, allocations: 69.92 kB / 0.4957 GB, free: 12 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.5267, allocations: 3.438 kB / 0.4957 GB, free: 12 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001472/0.5282, allocations: 1.632 MB / 0.4972 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.5282, allocations: 8.016 kB / 0.4973 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008956/0.5291, allocations: 0.6314 MB / 0.4979 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002511/0.5294, allocations: 151.7 kB / 0.498 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.921e-05/0.5295, allocations: 11.88 kB / 0.498 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003525/0.5298, allocations: 35.95 kB / 0.4981 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.53, allocations: 47.69 kB / 0.4981 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.49e-05/0.53, allocations: 16.11 kB / 0.4981 GB, free: 13.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002643/0.5303, allocations: 214.8 kB / 0.4983 GB, free: 13.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5303, allocations: 0 / 0.4983 GB, free: 13.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001032/0.5313, allocations: 223.2 kB / 0.4985 GB, free: 13.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v,loadInductor.i) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y_last,meanVoltage.y_last) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001199/0.5325, allocations: 1.347 MB / 0.4999 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.5338, allocations: 0.862 MB / 0.5007 GB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5338, allocations: 0 / 0.5007 GB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003794/0.5342, allocations: 296 kB / 0.501 GB, free: 11.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.5346, allocations: 72.81 kB / 0.5011 GB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.5363, allocations: 0.8863 MB / 0.5019 GB, free: 10.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.5368, allocations: 0.8676 MB / 0.5028 GB, free: 9.297 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002891/0.5371, allocations: 65.38 kB / 0.5028 GB, free: 9.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.5373, allocations: 179.9 kB / 0.503 GB, free: 9.184 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5373, allocations: 0 / 0.503 GB, free: 9.184 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03078/0.5681, allocations: 10.06 MB / 0.5128 GB, free: 15.3 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/0.5683, allocations: 184 kB / 0.513 GB, free: 15.11 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.334/2.903, allocations: 3.938 kB / 0.513 GB, free: 15.1 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat