Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009356/0.0009355, allocations: 178.6 kB / 8.697 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008503/0.0008504, allocations: 82.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.019e-05/3.063e-05, allocations: 4 kB / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08645, allocations: 47.58 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3402/0.4267, allocations: 86.94 MB / 450.1 MB, free: 8.758 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.4271, allocations: 94.58 kB / 450.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03921/0.4663, allocations: 12.84 MB / 463.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4663, allocations: 0 / 463.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.374e-05/0.4664, allocations: 15.98 kB / 463.1 MB, free: 14.02 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.001453/0.4679, allocations: 0.8446 MB / 463.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.4679, allocations: 8.031 kB / 463.9 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.4681, allocations: 83.02 kB / 464 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006989/0.4688, allocations: 485.9 kB / 464.5 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.4688, allocations: 16 kB / 464.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-05/0.4689, allocations: 43.55 kB / 464.5 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000657/0.4696, allocations: 396.4 kB / 464.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008714/0.4704, allocations: 0.5238 MB / 465.4 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.4705, allocations: 3.906 kB / 465.4 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.108e-05/0.4705, allocations: 7.812 kB / 465.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.4705, allocations: 15.95 kB / 465.5 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.4737, allocations: 2.168 MB / 467.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007577/0.4745, allocations: 438 kB / 468.1 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004007/0.4749, allocations: 219.2 kB / 468.3 MB, free: 9.641 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.4749, allocations: 4 kB / 468.3 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004621/0.4754, allocations: 293.9 kB / 468.6 MB, free: 9.395 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 2.725e-06/0.4754, allocations: 0 / 468.6 MB, free: 9.395 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006619/0.4761, allocations: 390.8 kB / 469 MB, free: 9.098 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.971e-05/0.4762, allocations: 144.5 kB / 469.1 MB, free: 8.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000386/0.4766, allocations: 359.8 kB / 469.4 MB, free: 8.648 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.854e-05/0.4766, allocations: 37.44 kB / 469.5 MB, free: 8.609 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.4768, allocations: 305.6 kB / 469.8 MB, free: 8.379 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.649e-05/0.4769, allocations: 135.3 kB / 469.9 MB, free: 8.266 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/0.477, allocations: 0 / 469.9 MB, free: 8.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4771, allocations: 359.5 kB / 470.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.4773, allocations: 139.7 kB / 470.4 MB, free: 7.844 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.4776, allocations: 290.3 kB / 470.7 MB, free: 7.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002351/0.4778, allocations: 164.7 kB / 470.8 MB, free: 7.461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.4779, allocations: 0 / 470.8 MB, free: 7.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.000699/0.4786, allocations: 0.4904 MB / 471.3 MB, free: 7.078 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006093/0.4792, allocations: 1.663 MB / 473 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.4792, allocations: 4 kB / 473 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003287/0.4795, allocations: 78.62 kB / 473.1 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.4799, allocations: 95.38 kB / 473.2 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.4814, allocations: 1.686 MB / 474.9 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004355/0.4819, allocations: 75.7 kB / 474.9 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/0.4819, allocations: 27.88 kB / 475 MB, free: 3.457 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.746e-06/0.482, allocations: 4 kB / 475 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006192/0.4826, allocations: 420.7 kB / 475.4 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.4826, allocations: 4 kB / 475.4 MB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001908/0.4828, allocations: 83.86 kB / 475.5 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.4831, allocations: 86.45 kB / 475.5 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.4846, allocations: 1.692 MB / 477.2 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003833/0.485, allocations: 55.66 kB / 477.3 MB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.4851, allocations: 27.23 kB / 477.3 MB, free: 1.324 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 25 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p.off,rectifier.thyristor_p.off,$PRE.rectifier.thyristor_n.off,rectifier.thyristor_n.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * 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.0001871/0.4853, allocations: 127.5 kB / 477.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005878/0.4859, allocations: 388.6 kB / 477.8 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.573e-05/0.4859, allocations: 51.38 kB / 477.9 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001318/0.4861, allocations: 53.66 kB / 477.9 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.4861, allocations: 8 kB / 477.9 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.4861, allocations: 4.031 kB / 477.9 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.4861, allocations: 3.984 kB / 477.9 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.4876, allocations: 1.116 MB / 479.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4876, allocations: 0 / 479.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.4879, allocations: 55.69 kB / 479.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001901/0.4881, allocations: 68.69 kB / 479.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.4881, allocations: 11.55 kB / 479.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.4894, allocations: 1.584 MB / 480.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4894, allocations: 3.984 kB / 480.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009569/0.4904, allocations: 0.7176 MB / 481.5 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/0.4906, allocations: 166 kB / 481.7 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.01e-05/0.4907, allocations: 7.938 kB / 481.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003199/0.491, allocations: 39.78 kB / 481.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.4912, allocations: 51.05 kB / 481.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.4912, allocations: 15.61 kB / 481.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003136/0.4915, allocations: 265.7 kB / 482 MB, free: 13.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4915, allocations: 0 / 482 MB, free: 13.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009993/0.4925, allocations: 251.1 kB / 482.3 MB, free: 13.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 18 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p.off,rectifier.thyristor_n.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.off,rectifier.thyristor_p.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00135/0.4939, allocations: 1.344 MB / 483.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.4953, allocations: 0.8624 MB / 484.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4953, allocations: 0 / 484.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003932/0.4957, allocations: 328.9 kB / 484.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004806/0.4962, allocations: 71.05 kB / 484.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.4982, allocations: 0.9102 MB / 485.8 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004777/0.4987, allocations: 0.9225 MB / 486.7 MB, free: 8.914 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003851/0.4991, allocations: 104.3 kB / 486.8 MB, free: 8.809 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/0.4993, allocations: 207.4 kB / 487 MB, free: 8.609 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4993, allocations: 0 / 487 MB, free: 8.609 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03522/0.5345, allocations: 11.27 MB / 498.3 MB, free: 13.34 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002219/0.5348, allocations: 201.2 kB / 498.5 MB, free: 13.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/2.796, allocations: 0 / 498.5 MB, free: 13.07 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RL.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RL_res.mat does not exist to compare? outputFormat=mat