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.0009854/0.0009855, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 221.3 MB / 235.5 MB, free: 2.977 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.0008095/0.0008095, allocations: 88.69 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.85e-05, allocations: 4 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1014, allocations: 50.42 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3074/0.4089, allocations: 84.02 MB / 478.4 MB, free: 3.473 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.4092, allocations: 79.95 kB / 478.4 MB, free: 3.395 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03032/0.4395, allocations: 11.36 MB / 489.8 MB, free: 8.004 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.4395, allocations: 0 / 489.8 MB, free: 8.004 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.4396, allocations: 12 kB / 489.8 MB, free: 7.992 MB / 362.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.0012/0.4408, allocations: 0.7873 MB / 490.6 MB, free: 7.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.4408, allocations: 8.031 kB / 490.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.536e-05/0.4409, allocations: 78.52 kB / 490.7 MB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.441, allocations: 67.25 kB / 490.7 MB, free: 6.992 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000584/0.4416, allocations: 405.9 kB / 491.1 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.4417, allocations: 28.78 kB / 491.2 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.642e-05/0.4417, allocations: 39.94 kB / 491.2 MB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006572/0.4424, allocations: 426.3 kB / 491.6 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.4424, allocations: 0 / 491.6 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.049e-05/0.4425, allocations: 23.95 kB / 491.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.4425, allocations: 8 kB / 491.7 MB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004982/0.443, allocations: 295 kB / 491.9 MB, free: 5.723 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00229/0.4453, allocations: 1.741 MB / 493.7 MB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005488/0.4459, allocations: 355.2 kB / 494 MB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.4461, allocations: 180.8 kB / 494.2 MB, free: 3.344 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.4462, allocations: 8 kB / 494.2 MB, free: 3.336 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003575/0.4465, allocations: 250.4 kB / 494.5 MB, free: 3.062 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.773e-06/0.4466, allocations: 0 / 494.5 MB, free: 3.062 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008812/0.4474, allocations: 461.1 kB / 494.9 MB, free: 2.594 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.038e-05/0.4475, allocations: 191.9 kB / 495.1 MB, free: 2.363 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005065/0.4481, allocations: 443.1 kB / 495.5 MB, free: 1.926 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.509e-05/0.4481, allocations: 33.7 kB / 495.6 MB, free: 1.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.4483, allocations: 256.4 kB / 495.8 MB, free: 1.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.746e-05/0.4484, allocations: 118.3 kB / 495.9 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.67e-05/0.4484, allocations: 12 kB / 495.9 MB, free: 1.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.4485, allocations: 362.8 kB / 496.3 MB, free: 1.137 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.4487, allocations: 116.8 kB / 496.4 MB, free: 1.023 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/0.449, allocations: 201.3 kB / 496.6 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.4492, allocations: 125.5 kB / 496.7 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4492, allocations: 0 / 496.7 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006834/0.4499, allocations: 453.4 kB / 497.2 MB, free: 220 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.45, allocations: 4 kB / 497.2 MB, free: 216 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.45, allocations: 3.953 kB / 497.2 MB, free: 212 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004753/0.4505, allocations: 159.4 kB / 497.3 MB, free: 40 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.4507, allocations: 56.05 kB / 497.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004396/0.4551, allocations: 5.927 MB / 0.4915 GB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004047/0.4555, allocations: 55.95 kB / 0.4916 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.4556, allocations: 15.98 kB / 0.4916 GB, free: 9.445 MB / 378.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.0001355/0.4557, allocations: 139.2 kB / 0.4917 GB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.192e-05/0.4558, allocations: 55.44 kB / 0.4918 GB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000934/0.4567, allocations: 493 kB / 0.4922 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.4568, allocations: 4 kB / 0.4923 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.4568, allocations: 3.984 kB / 0.4923 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4568, allocations: 0 / 0.4923 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000514/0.4573, allocations: 0.5086 MB / 0.4928 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4573, allocations: 0 / 0.4928 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.4575, allocations: 31.91 kB / 0.4928 GB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003848/0.4578, allocations: 147.4 kB / 0.4929 GB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.4579, allocations: 8 kB / 0.4929 GB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003962/0.4619, allocations: 5.789 MB / 0.4986 GB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4619, allocations: 0 / 0.4986 GB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008259/0.4627, allocations: 499.2 kB / 0.4991 GB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/0.4629, allocations: 176.3 kB / 0.4992 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.226e-05/0.463, allocations: 8 kB / 0.4992 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002846/0.4633, allocations: 39.97 kB / 0.4993 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.4634, allocations: 51.91 kB / 0.4993 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.4635, allocations: 20.12 kB / 0.4993 GB, free: 0.832 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003968/0.4639, allocations: 345.2 kB / 0.4997 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4639, allocations: 0 / 0.4997 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007419/0.4646, allocations: 187.7 kB / 0.4999 GB, free: 320 kB / 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.001869/0.4665, allocations: 1.326 MB / 0.5011 GB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009889/0.4675, allocations: 0.7913 MB / 0.5019 GB, free: 14.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4675, allocations: 0 / 0.5019 GB, free: 14.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000606/0.4681, allocations: 0.6468 MB / 0.5026 GB, free: 13.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004834/0.4686, allocations: 101.9 kB / 0.5026 GB, free: 13.42 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.4704, allocations: 0.8157 MB / 0.5034 GB, free: 12.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.4708, allocations: 0.8748 MB / 0.5043 GB, free: 11.66 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001895/0.471, allocations: 43.47 kB / 0.5043 GB, free: 11.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.4712, allocations: 171.4 kB / 0.5045 GB, free: 11.46 MB / 394.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4712, allocations: 3.938 kB / 0.5045 GB, free: 11.45 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02946/0.5007, allocations: 12.85 MB / 0.5171 GB, free: 14.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.5009, allocations: 235 kB / 0.5173 GB, free: 14.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.188/2.689, allocations: 0 / 0.5173 GB, free: 14.52 MB / 410.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