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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 94.17 kB / 16.95 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 178.6 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000511/0.0005111, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09964/0.1002, allocations: 47.59 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004294/0.1045, allocations: 3.383 MB / 331.8 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002414/0.107, allocations: 1.283 MB / 333.1 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000474/0.1075, allocations: 11.94 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008407/0.1083, allocations: 207.2 kB / 333.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000667/0.109, allocations: 222.7 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007309/0.1098, allocations: 211.6 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008901/0.1107, allocations: 0.6383 MB / 334.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003134/0.111, allocations: 140.5 kB / 334.5 MB, free: 13.85 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005251/0.1115, allocations: 231.1 kB / 334.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000435/0.112, allocations: 258.9 kB / 335 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.641e-05/0.112, allocations: 24 kB / 335 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.1123, allocations: 71.91 kB / 335.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.1124, allocations: 111.6 kB / 335.2 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.1126, allocations: 137.3 kB / 335.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004947/0.1131, allocations: 0.4986 MB / 335.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1131, allocations: 0 / 335.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1131, allocations: 0 / 335.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1131, allocations: 0 / 335.9 MB, free: 12.53 MB / 286.1 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.001454/0.1146, allocations: 0.8596 MB / 336.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1146, allocations: 12.03 kB / 336.7 MB, free: 11.6 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.689e-05/0.1147, allocations: 82.52 kB / 336.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.1149, allocations: 71.16 kB / 336.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005179/0.1154, allocations: 385.9 kB / 337.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.1154, allocations: 29 kB / 337.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.1155, allocations: 36 kB / 337.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007206/0.1162, allocations: 445.5 kB / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.1162, allocations: 0 / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.1163, allocations: 16 kB / 337.8 MB, free: 10.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.1163, allocations: 12 kB / 337.8 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005774/0.1169, allocations: 315.8 kB / 338.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.1191, allocations: 1.722 MB / 339.8 MB, free: 8.344 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006345/0.1198, allocations: 371 kB / 340.2 MB, free: 7.973 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000309/0.1201, allocations: 188.5 kB / 340.4 MB, free: 7.785 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.428e-05/0.1201, allocations: 7.984 kB / 340.4 MB, free: 7.777 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004416/0.1206, allocations: 262.4 kB / 340.6 MB, free: 7.492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.505e-06/0.1206, allocations: 0 / 340.6 MB, free: 7.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002026/0.1226, allocations: 1.021 MB / 341.6 MB, free: 6.379 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.1228, allocations: 187.9 kB / 341.8 MB, free: 6.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005761/0.1233, allocations: 0.4902 MB / 342.3 MB, free: 5.645 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.1234, allocations: 37.69 kB / 342.3 MB, free: 5.602 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.1236, allocations: 252.4 kB / 342.6 MB, free: 5.352 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.771e-05/0.1237, allocations: 118.4 kB / 342.7 MB, free: 5.234 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.1237, allocations: 8 kB / 342.7 MB, free: 5.227 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1238, allocations: 366.7 kB / 343.1 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.1241, allocations: 112.8 kB / 343.2 MB, free: 4.75 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003167/0.1244, allocations: 221.2 kB / 343.4 MB, free: 4.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/0.1247, allocations: 125.9 kB / 343.5 MB, free: 4.379 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1247, allocations: 0 / 343.5 MB, free: 4.379 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008591/0.1256, allocations: 484.6 kB / 344 MB, free: 3.887 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.1256, allocations: 4 kB / 344 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1256, allocations: 4.094 kB / 344 MB, free: 3.879 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005582/0.1262, allocations: 159.3 kB / 344.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.1264, allocations: 43.91 kB / 344.2 MB, free: 3.668 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005377/0.1318, allocations: 5.966 MB / 350.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003841/0.1322, allocations: 63.59 kB / 350.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.127e-05/0.1323, allocations: 8 kB / 350.2 MB, free: 13.1 MB / 302.1 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,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,$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.0003203/0.1326, allocations: 196 kB / 350.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.767e-05/0.1327, allocations: 51.34 kB / 350.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.1329, allocations: 64.75 kB / 350.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.1329, allocations: 7.953 kB / 350.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1329, allocations: 0 / 350.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1329, allocations: 3.984 kB / 350.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006151/0.1335, allocations: 489.1 kB / 351 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.1335, allocations: 8.125 kB / 351 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.1337, allocations: 31.98 kB / 351.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004182/0.1341, allocations: 151.3 kB / 351.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.1341, allocations: 8 kB / 351.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00472/0.1389, allocations: 5.796 MB / 357 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1389, allocations: 0 / 357 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009668/0.1399, allocations: 0.5124 MB / 357.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.1401, allocations: 160.4 kB / 357.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.469e-05/0.1402, allocations: 7.984 kB / 357.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.1404, allocations: 35.94 kB / 357.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.1406, allocations: 67.84 kB / 357.8 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.1406, allocations: 8 kB / 357.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004391/0.1411, allocations: 355.1 kB / 358.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1411, allocations: 0 / 358.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008271/0.1419, allocations: 171.7 kB / 358.3 MB, free: 4.355 MB / 302.1 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,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * 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.002026/0.144, allocations: 1.371 MB / 359.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.1451, allocations: 0.7999 MB / 360.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.1451, allocations: 0 / 360.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007419/0.1459, allocations: 0.6587 MB / 361.2 MB, free: 1.395 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000564/0.1465, allocations: 105.9 kB / 361.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004993/0.1515, allocations: 2.884 MB / 364.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004704/0.152, allocations: 0.8631 MB / 365 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002311/0.1522, allocations: 52.16 kB / 365.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/0.1525, allocations: 171.4 kB / 365.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1525, allocations: 0 / 365.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02968/0.1822, allocations: 12.7 MB / 377.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/0.1824, allocations: 264.4 kB / 378.2 MB, free: 148 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/2.346, allocations: 4 kB / 378.2 MB, free: 144 kB / 318.1 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) Environment - environmentSimulation: 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