Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 221.5 MB / 230.3 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008151/0.0008149, allocations: 86.83 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.881e-05, allocations: 8 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.08771, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3278/0.4155, allocations: 83.36 MB / 470.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.4158, allocations: 71.97 kB / 471 MB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03033/0.4462, allocations: 11.25 MB / 482.2 MB, free: 88 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4462, allocations: 3.938 kB / 482.2 MB, free: 84 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.658e-05/0.4462, allocations: 19.98 kB / 482.3 MB, free: 64 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001277/0.4475, allocations: 0.7873 MB / 483 MB, free: 15.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.4476, allocations: 12.03 kB / 483.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.4477, allocations: 63.25 kB / 483.1 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000607/0.4483, allocations: 399.8 kB / 483.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.4484, allocations: 20.22 kB / 483.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.4484, allocations: 23.98 kB / 483.6 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005038/0.4489, allocations: 265.5 kB / 483.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006222/0.4496, allocations: 368.8 kB / 484.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.4496, allocations: 0 / 484.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.675e-05/0.4496, allocations: 7.953 kB / 484.2 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.4496, allocations: 8 kB / 484.2 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.4521, allocations: 1.662 MB / 485.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005424/0.4526, allocations: 331.2 kB / 486.2 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002477/0.4529, allocations: 169.7 kB / 486.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.4529, allocations: 8 kB / 486.3 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003719/0.4533, allocations: 230.2 kB / 486.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.4533, allocations: 0 / 486.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009414/0.4543, allocations: 429.3 kB / 487 MB, free: 11.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/0.4544, allocations: 187.9 kB / 487.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004673/0.4549, allocations: 409.2 kB / 487.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.4549, allocations: 29.69 kB / 487.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.4551, allocations: 256.3 kB / 487.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.897e-05/0.4552, allocations: 114.3 kB / 488 MB, free: 10.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.758e-05/0.4552, allocations: 0 / 488 MB, free: 10.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4554, allocations: 362.8 kB / 488.3 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.4556, allocations: 104.9 kB / 488.4 MB, free: 9.562 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.4558, allocations: 196.3 kB / 488.6 MB, free: 9.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.456, allocations: 113.6 kB / 488.7 MB, free: 9.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.456, allocations: 0 / 488.7 MB, free: 9.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006461/0.4567, allocations: 417.4 kB / 489.1 MB, free: 8.805 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.4567, allocations: 4 kB / 489.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.4567, allocations: 8.062 kB / 489.1 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004744/0.4572, allocations: 155.4 kB / 489.3 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.4575, allocations: 47.91 kB / 489.3 MB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004593/0.4621, allocations: 5.732 MB / 495.1 MB, free: 2.387 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.4625, allocations: 51.81 kB / 495.1 MB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.4626, allocations: 12 kB / 495.1 MB, free: 2.324 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001388/0.4627, allocations: 119.2 kB / 495.3 MB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007852/0.4635, allocations: 424.2 kB / 495.7 MB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.105e-05/0.4636, allocations: 55.38 kB / 495.7 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008691/0.4645, allocations: 453.3 kB / 496.2 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4645, allocations: 4 kB / 496.2 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.4645, allocations: 0 / 496.2 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4645, allocations: 0 / 496.2 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005342/0.465, allocations: 445.6 kB / 496.6 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.465, allocations: 0 / 496.6 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.4652, allocations: 35.92 kB / 496.6 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000396/0.4656, allocations: 151.4 kB / 496.8 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.4656, allocations: 8 kB / 496.8 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004298/0.47, allocations: 5.555 MB / 0.4906 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.47, allocations: 0 / 0.4906 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008466/0.4708, allocations: 471.5 kB / 0.491 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.471, allocations: 164.4 kB / 0.4912 GB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.534e-05/0.4711, allocations: 4 kB / 0.4912 GB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.4714, allocations: 35.97 kB / 0.4912 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.4715, allocations: 55.84 kB / 0.4913 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.4716, allocations: 11.94 kB / 0.4913 GB, free: 9.777 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003644/0.4719, allocations: 322.9 kB / 0.4916 GB, free: 9.465 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4719, allocations: 0 / 0.4916 GB, free: 9.465 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007592/0.4727, allocations: 159.7 kB / 0.4917 GB, free: 9.309 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001848/0.4746, allocations: 1.256 MB / 0.493 GB, free: 8.102 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.4756, allocations: 0.7409 MB / 0.4937 GB, free: 7.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4756, allocations: 4.188 kB / 0.4937 GB, free: 7.316 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005841/0.4762, allocations: 0.6043 MB / 0.4943 GB, free: 6.672 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.4767, allocations: 77.75 kB / 0.4944 GB, free: 6.594 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.4785, allocations: 0.7731 MB / 0.4951 GB, free: 5.781 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.479, allocations: 0.8712 MB / 0.496 GB, free: 4.879 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.4792, allocations: 47.3 kB / 0.496 GB, free: 4.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002151/0.4794, allocations: 171.3 kB / 0.4962 GB, free: 4.664 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4794, allocations: 4 kB / 0.4962 GB, free: 4.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.5107, allocations: 11.45 MB / 0.5074 GB, free: 9.285 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.5109, allocations: 188.7 kB / 0.5075 GB, free: 9.086 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.735, allocations: 0 / 0.5075 GB, free: 9.086 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat