Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_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.001084/0.001084, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008308/0.0008308, allocations: 94.61 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002172/0.0002173, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2063, allocations: 47.57 MB / 375.9 MB, free: 45.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08901/0.2953, allocations: 82.26 MB / 458.2 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.2956, allocations: 79.95 kB / 458.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02956/0.3252, allocations: 11.05 MB / 469.3 MB, free: 3.117 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3252, allocations: 0 / 469.3 MB, free: 3.117 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.763e-05/0.3253, allocations: 12.22 kB / 469.3 MB, free: 3.105 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.001527/0.3268, allocations: 0.8731 MB / 470.2 MB, free: 2.176 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.3269, allocations: 11.97 kB / 470.2 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001284/0.327, allocations: 74.53 kB / 470.3 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.3272, allocations: 71.16 kB / 470.3 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006359/0.3278, allocations: 397.9 kB / 470.7 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.3279, allocations: 36.95 kB / 470.8 MB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.452e-05/0.3279, allocations: 40 kB / 470.8 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000687/0.3286, allocations: 441.5 kB / 471.2 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3287, allocations: 0 / 471.2 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.832e-05/0.3287, allocations: 16 kB / 471.3 MB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.3287, allocations: 15.98 kB / 471.3 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005628/0.3293, allocations: 315.8 kB / 471.6 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.3316, allocations: 1.749 MB / 473.3 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006117/0.3322, allocations: 364.9 kB / 473.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.3323, allocations: 8 kB / 473.7 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004074/0.3327, allocations: 266.4 kB / 473.9 MB, free: 14.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.734e-06/0.3327, allocations: 3.938 kB / 474 MB, free: 14.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.002108/0.3348, allocations: 1.029 MB / 475 MB, free: 13.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.685e-05/0.3349, allocations: 191.9 kB / 475.2 MB, free: 12.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.3354, allocations: 445.1 kB / 475.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.801e-05/0.3355, allocations: 37.64 kB / 475.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.3357, allocations: 256.4 kB / 475.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.173e-05/0.3358, allocations: 118.3 kB / 476 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.3358, allocations: 8 kB / 476 MB, free: 11.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3359, allocations: 362.8 kB / 476.4 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.3362, allocations: 120.8 kB / 476.5 MB, free: 11.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003007/0.3365, allocations: 221.2 kB / 476.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.3367, allocations: 121.8 kB / 476.8 MB, free: 11.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3368, allocations: 3.953 kB / 476.8 MB, free: 11.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007732/0.3375, allocations: 489.1 kB / 477.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3376, allocations: 4 kB / 477.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3376, allocations: 64 / 477.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000485/0.3381, allocations: 159.3 kB / 477.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.3383, allocations: 55.94 kB / 477.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004356/0.3427, allocations: 5.986 MB / 483.5 MB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004573/0.3432, allocations: 67.67 kB / 483.6 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.3432, allocations: 12 kB / 483.6 MB, free: 3.805 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.0003009/0.3435, allocations: 188 kB / 483.8 MB, free: 3.613 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.3436, allocations: 55.34 kB / 483.8 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.3447, allocations: 0.5047 MB / 484.3 MB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3447, allocations: 7.953 kB / 484.3 MB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.3447, allocations: 0 / 484.3 MB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3447, allocations: 0 / 484.3 MB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005515/0.3453, allocations: 0.4894 MB / 484.8 MB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3453, allocations: 11.92 kB / 484.8 MB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.3454, allocations: 27.98 kB / 484.9 MB, free: 2.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004001/0.3458, allocations: 155.3 kB / 485 MB, free: 2.281 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.3459, allocations: 8 kB / 485 MB, free: 2.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003994/0.3499, allocations: 5.856 MB / 490.9 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3499, allocations: 0 / 490.9 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009793/0.3509, allocations: 0.5109 MB / 491.4 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.3511, allocations: 164.4 kB / 491.5 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.041e-05/0.3512, allocations: 8 kB / 491.6 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002831/0.3515, allocations: 43.92 kB / 491.6 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.3516, allocations: 63.84 kB / 491.7 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.3517, allocations: 8 kB / 491.7 MB, free: 11.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004475/0.3521, allocations: 355.1 kB / 492 MB, free: 10.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3521, allocations: 0 / 492 MB, free: 10.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007944/0.3529, allocations: 183.7 kB / 492.2 MB, free: 10.52 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.001975/0.3549, allocations: 1.388 MB / 493.6 MB, free: 9.117 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001188/0.3561, allocations: 0.8148 MB / 494.4 MB, free: 8.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3561, allocations: 4.188 kB / 494.4 MB, free: 8.246 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006512/0.3568, allocations: 0.6626 MB / 495.1 MB, free: 7.531 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005128/0.3573, allocations: 108.2 kB / 495.2 MB, free: 7.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/0.362, allocations: 3.317 MB / 498.5 MB, free: 4.039 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005278/0.3626, allocations: 0.8748 MB / 499.4 MB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002615/0.3628, allocations: 47.45 kB / 499.4 MB, free: 3.086 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.3631, allocations: 167.4 kB / 499.6 MB, free: 2.922 MB / 378.7 MB Notification: Performance of SimCode: time 1.292e-06/0.3631, allocations: 0 / 499.6 MB, free: 2.922 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1786/0.5417, allocations: 12.9 MB / 0.5005 GB, free: 106 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.5419, allocations: 265.8 kB / 0.5007 GB, free: 105.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.316/2.858, allocations: 0 / 0.5007 GB, free: 105.7 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat