Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",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.002541/0.002541, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.001139, allocations: 99.48 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004024/0.0004026, allocations: 12 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3425, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.4754, allocations: 82.27 MB / 456.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003265/0.4758, allocations: 75.97 kB / 457 MB, free: 14.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04981/0.5256, allocations: 11.05 MB / 468 MB, free: 3.227 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5257, allocations: 4 kB / 468 MB, free: 3.223 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.914e-05/0.5258, allocations: 8.219 kB / 468 MB, free: 3.215 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002206/0.528, allocations: 0.877 MB / 468.9 MB, free: 2.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.528, allocations: 12.03 kB / 468.9 MB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001484/0.5282, allocations: 78.53 kB / 469 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.5284, allocations: 67.16 kB / 469.1 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009166/0.5293, allocations: 397.9 kB / 469.5 MB, free: 1.688 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.058e-05/0.5294, allocations: 32.95 kB / 469.5 MB, free: 1.652 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.813e-05/0.5295, allocations: 40 kB / 469.5 MB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.5307, allocations: 441.5 kB / 470 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.5308, allocations: 0 / 470 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.93e-05/0.5308, allocations: 20 kB / 470 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.5309, allocations: 19.92 kB / 470 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.5319, allocations: 315.8 kB / 470.3 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004302/0.5363, allocations: 1.745 MB / 472 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.5375, allocations: 372.9 kB / 472.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.511e-05/0.5375, allocations: 4 kB / 472.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007052/0.5382, allocations: 266.4 kB / 472.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.975e-06/0.5383, allocations: 7.875 kB / 472.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.003748/0.542, allocations: 1.018 MB / 473.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.5422, allocations: 203.8 kB / 473.9 MB, free: 12.94 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000919/0.5431, allocations: 437.1 kB / 474.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-05/0.5432, allocations: 37.7 kB / 474.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/0.5435, allocations: 298.8 kB / 474.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.5436, allocations: 114.4 kB / 474.8 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-05/0.5437, allocations: 8 kB / 474.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.5439, allocations: 330.8 kB / 475.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004489/0.5443, allocations: 124.8 kB / 475.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005535/0.5449, allocations: 213.2 kB / 475.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004483/0.5453, allocations: 125.8 kB / 475.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.5454, allocations: 7.953 kB / 475.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001333/0.5467, allocations: 445.6 kB / 476 MB, free: 10.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.5468, allocations: 13.09 kB / 476 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.5468, allocations: 0 / 476 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008456/0.5476, allocations: 155.3 kB / 476.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/0.5481, allocations: 47.92 kB / 476.2 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00698/0.5551, allocations: 5.997 MB / 482.2 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000769/0.5559, allocations: 55.62 kB / 482.3 MB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.376e-05/0.556, allocations: 24.03 kB / 482.3 MB, free: 3.938 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 () * Number of clocked 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.0004118/0.5564, allocations: 188 kB / 482.5 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.5565, allocations: 47.44 kB / 482.5 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.5583, allocations: 0.5047 MB / 483 MB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.5584, allocations: 7.953 kB / 483 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.5584, allocations: 0 / 483 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.5584, allocations: 4 kB / 483 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009287/0.5593, allocations: 0.4932 MB / 483.5 MB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5593, allocations: 4.125 kB / 483.5 MB, free: 2.613 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000269/0.5596, allocations: 35.97 kB / 483.6 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007515/0.5604, allocations: 159.2 kB / 483.7 MB, free: 2.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/0.5604, allocations: 7.984 kB / 483.7 MB, free: 2.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006723/0.5672, allocations: 5.84 MB / 489.6 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5672, allocations: 0 / 489.6 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.569, allocations: 0.511 MB / 490.1 MB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/0.5694, allocations: 172.3 kB / 490.2 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.5695, allocations: 12 kB / 490.3 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/0.57, allocations: 43.92 kB / 490.3 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.5702, allocations: 55.84 kB / 490.3 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.5703, allocations: 12 kB / 490.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006914/0.571, allocations: 355.1 kB / 490.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.571, allocations: 0 / 490.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001133/0.5722, allocations: 183.8 kB / 490.9 MB, free: 10.66 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) * Number of clocked states: 0 () * 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.00315/0.5753, allocations: 1.392 MB / 492.3 MB, free: 9.254 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.5772, allocations: 0.8071 MB / 493.1 MB, free: 8.395 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5772, allocations: 7.938 kB / 493.1 MB, free: 8.387 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.5784, allocations: 0.6629 MB / 493.8 MB, free: 7.672 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008738/0.5793, allocations: 104.3 kB / 493.9 MB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007703/0.587, allocations: 3.356 MB / 497.2 MB, free: 4.141 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005815/0.5876, allocations: 0.8748 MB / 498.1 MB, free: 3.234 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004157/0.5881, allocations: 171.4 kB / 498.3 MB, free: 3.066 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5881, allocations: 0 / 498.3 MB, free: 3.066 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.458/4.046, allocations: 16.35 MB / 0.5025 GB, free: 103.2 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat