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.0009309/0.0009309, allocations: 171.3 kB / 14.1 MB, free: 1.223 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.345/1.345, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008258/0.0008257, allocations: 86.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.89e-05/2.892e-05, allocations: 7.984 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07833/0.07837, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2751/0.3536, allocations: 82.16 MB / 452.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/0.3538, allocations: 73.14 kB / 452.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02786/0.3817, allocations: 11.05 MB / 463.4 MB, free: 1.496 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3817, allocations: 0 / 463.4 MB, free: 1.496 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.959e-05/0.3818, allocations: 12.16 kB / 463.4 MB, free: 1.484 MB / 330.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.001128/0.3829, allocations: 0.7873 MB / 464.2 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.3829, allocations: 8.031 kB / 464.2 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.075e-05/0.383, allocations: 82.52 kB / 464.3 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.928e-05/0.3831, allocations: 71.25 kB / 464.4 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005641/0.3837, allocations: 397.7 kB / 464.7 MB, free: 48 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.3838, allocations: 36.73 kB / 464.8 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.63e-05/0.3838, allocations: 40.05 kB / 464.8 MB, free: 15.97 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006947/0.3845, allocations: 418.3 kB / 465.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.3846, allocations: 4 kB / 465.2 MB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.056e-05/0.3846, allocations: 16 kB / 465.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.3847, allocations: 12 kB / 465.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006674/0.3853, allocations: 291 kB / 465.5 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.3882, allocations: 1.764 MB / 467.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006733/0.3889, allocations: 344.5 kB / 467.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003118/0.3892, allocations: 176.8 kB / 467.8 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.35e-05/0.3892, allocations: 8 kB / 467.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004323/0.3897, allocations: 258.3 kB / 468.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 1.954e-06/0.3897, allocations: 0 / 468.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.001033/0.3907, allocations: 457.1 kB / 468.5 MB, free: 12.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/0.3908, allocations: 183.9 kB / 468.7 MB, free: 11.86 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006001/0.3914, allocations: 447.1 kB / 469.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.3915, allocations: 37.7 kB / 469.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.3917, allocations: 248.5 kB / 469.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.3918, allocations: 118.3 kB / 469.5 MB, free: 11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.246e-05/0.3918, allocations: 8 kB / 469.5 MB, free: 11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.392, allocations: 362.8 kB / 469.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.3922, allocations: 112.9 kB / 470 MB, free: 10.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.3926, allocations: 205.2 kB / 470.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002423/0.3928, allocations: 125.5 kB / 470.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3928, allocations: 0 / 470.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008121/0.3937, allocations: 457.1 kB / 470.8 MB, free: 9.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.3937, allocations: 4 kB / 470.8 MB, free: 9.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.3937, allocations: 7.984 kB / 470.8 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005453/0.3942, allocations: 155.4 kB / 470.9 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.3945, allocations: 51.84 kB / 471 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004686/0.3992, allocations: 5.951 MB / 476.9 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003626/0.3996, allocations: 63.61 kB / 477 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.3996, allocations: 12 kB / 477 MB, free: 2.918 MB / 346.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.000112/0.3998, allocations: 135.2 kB / 477.1 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.932e-05/0.3998, allocations: 47.44 kB / 477.2 MB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009482/0.4008, allocations: 0.4892 MB / 477.7 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.4008, allocations: 4.094 kB / 477.7 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-06/0.4008, allocations: 0 / 477.7 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.4008, allocations: 7.984 kB / 477.7 MB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005223/0.4014, allocations: 0.4971 MB / 478.2 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4014, allocations: 0 / 478.2 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.4015, allocations: 36.09 kB / 478.2 MB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003863/0.4019, allocations: 151.3 kB / 478.4 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.4019, allocations: 11.98 kB / 478.4 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/0.4065, allocations: 5.784 MB / 484.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4065, allocations: 0 / 484.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008542/0.4073, allocations: 495.3 kB / 484.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.4076, allocations: 168.3 kB / 484.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.363e-05/0.4076, allocations: 19.94 kB / 484.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002824/0.4079, allocations: 31.98 kB / 484.9 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.4081, allocations: 63.84 kB / 484.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.4081, allocations: 8 kB / 484.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004179/0.4085, allocations: 357.2 kB / 485.3 MB, free: 9.969 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4085, allocations: 0 / 485.3 MB, free: 9.969 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006832/0.4092, allocations: 171.8 kB / 485.5 MB, free: 9.801 MB / 362.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.001835/0.4111, allocations: 1.347 MB / 486.8 MB, free: 8.422 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009715/0.412, allocations: 0.7795 MB / 487.6 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4121, allocations: 0 / 487.6 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006061/0.4127, allocations: 0.6469 MB / 488.2 MB, free: 6.891 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/0.4131, allocations: 95.33 kB / 488.3 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.4148, allocations: 0.8117 MB / 489.1 MB, free: 5.949 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.4152, allocations: 0.8787 MB / 490 MB, free: 5.043 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001892/0.4154, allocations: 59.38 kB / 490.1 MB, free: 4.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.4156, allocations: 167.4 kB / 490.2 MB, free: 4.82 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4157, allocations: 0 / 490.2 MB, free: 4.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02906/0.4447, allocations: 12.86 MB / 0.4913 GB, free: 7.934 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.445, allocations: 231 kB / 0.4915 GB, free: 7.652 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.693, allocations: 4 kB / 0.4915 GB, free: 7.648 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