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.001069/0.001069, allocations: 99.23 kB / 16.94 MB, free: 5.98 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.0008942/0.0008945, allocations: 176.6 kB / 17.82 MB, free: 5.652 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.372/1.372, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004523/0.0004524, allocations: 12 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09753/0.09799, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004031/0.1021, allocations: 3.174 MB / 331.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002104/0.1042, allocations: 1.303 MB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002552/0.1045, allocations: 11.94 kB / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007184/0.1052, allocations: 207.2 kB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005588/0.1058, allocations: 275.2 kB / 333.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006289/0.1064, allocations: 211.6 kB / 333.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005918/0.107, allocations: 479.4 kB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.1073, allocations: 136.6 kB / 334.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/0.1076, allocations: 231.2 kB / 334.4 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.1079, allocations: 258.9 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.235e-05/0.108, allocations: 28 kB / 334.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.1082, allocations: 51.92 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.1083, allocations: 115.6 kB / 334.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.1084, allocations: 125.4 kB / 335 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004945/0.1089, allocations: 0.5025 MB / 335.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1089, allocations: 0 / 335.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1089, allocations: 0 / 335.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.109, allocations: 0 / 335.5 MB, free: 12.89 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.001459/0.1104, allocations: 0.8596 MB / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.1105, allocations: 8.031 kB / 336.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.667e-05/0.1106, allocations: 82.52 kB / 336.4 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.1107, allocations: 71.16 kB / 336.5 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005523/0.1113, allocations: 389.9 kB / 336.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.1113, allocations: 29 kB / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-05/0.1114, allocations: 36 kB / 336.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.1121, allocations: 441.5 kB / 337.4 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1121, allocations: 0 / 337.4 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.184e-05/0.1122, allocations: 20 kB / 337.4 MB, free: 10.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1122, allocations: 8 kB / 337.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005892/0.1128, allocations: 315.8 kB / 337.7 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.1154, allocations: 1.718 MB / 339.4 MB, free: 8.719 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.116, allocations: 371 kB / 339.8 MB, free: 8.348 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.1161, allocations: 7.938 kB / 339.8 MB, free: 8.34 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004345/0.1165, allocations: 259 kB / 340.1 MB, free: 8.059 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 1.704e-06/0.1165, allocations: 0 / 340.1 MB, free: 8.059 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002177/0.1187, allocations: 1.022 MB / 341.1 MB, free: 6.945 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.1188, allocations: 183.9 kB / 341.3 MB, free: 6.723 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006789/0.1195, allocations: 497.9 kB / 341.7 MB, free: 6.219 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.801e-05/0.1196, allocations: 37.7 kB / 341.8 MB, free: 6.176 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.1199, allocations: 252.4 kB / 342 MB, free: 5.926 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.12, allocations: 122.3 kB / 342.1 MB, free: 5.805 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/0.12, allocations: 4 kB / 342.1 MB, free: 5.801 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002596/0.1203, allocations: 366.7 kB / 342.5 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/0.1206, allocations: 124.8 kB / 342.6 MB, free: 5.312 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/0.1209, allocations: 217.2 kB / 342.8 MB, free: 5.066 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002774/0.1212, allocations: 125.9 kB / 343 MB, free: 4.945 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-06/0.1212, allocations: 4 kB / 343 MB, free: 4.941 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008919/0.1221, allocations: 480.7 kB / 343.4 MB, free: 4.453 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.1222, allocations: 7.938 kB / 343.4 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.1222, allocations: 0 / 343.4 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005808/0.1228, allocations: 155.3 kB / 343.6 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.123, allocations: 52 kB / 343.6 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005419/0.1284, allocations: 5.985 MB / 349.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004565/0.1289, allocations: 63.75 kB / 349.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.129, allocations: 12 kB / 349.7 MB, free: 13.64 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.0002866/0.1293, allocations: 188.3 kB / 349.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.479e-05/0.1293, allocations: 63.33 kB / 349.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.1295, allocations: 56.75 kB / 350 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1295, allocations: 8 kB / 350 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1295, allocations: 7.953 kB / 350 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.1295, allocations: 0 / 350 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000543/0.13, allocations: 489.1 kB / 350.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1301, allocations: 128 / 350.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.1302, allocations: 31.92 kB / 350.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004094/0.1306, allocations: 159.3 kB / 350.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.1307, allocations: 12 kB / 350.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004612/0.1353, allocations: 5.831 MB / 356.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1353, allocations: 0 / 356.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000964/0.1363, allocations: 0.5115 MB / 357 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.1365, allocations: 160.4 kB / 357.2 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.64e-05/0.1366, allocations: 12 kB / 357.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002887/0.1369, allocations: 35.97 kB / 357.2 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.137, allocations: 55.88 kB / 357.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.1371, allocations: 15.98 kB / 357.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004071/0.1375, allocations: 355.1 kB / 357.7 MB, free: 5.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1375, allocations: 0 / 357.7 MB, free: 5.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007827/0.1383, allocations: 167.8 kB / 357.8 MB, free: 4.859 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.00204/0.1403, allocations: 1.382 MB / 359.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001114/0.1415, allocations: 0.7991 MB / 360 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1415, allocations: 0 / 360 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006783/0.1421, allocations: 0.6627 MB / 360.7 MB, free: 1.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004652/0.1426, allocations: 97.84 kB / 360.8 MB, free: 1.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004487/0.1471, allocations: 3.294 MB / 364.1 MB, free: 14.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.1476, allocations: 0.8748 MB / 364.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002061/0.1478, allocations: 48.16 kB / 365 MB, free: 13.47 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.148, allocations: 171.3 kB / 365.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1481, allocations: 0 / 365.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0286/0.1767, allocations: 12.68 MB / 377.8 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/0.1769, allocations: 259 kB / 378.1 MB, free: 252 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.105/2.282, allocations: 3.938 kB / 378.1 MB, free: 248 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