Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",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.0009713/0.0009713, allocations: 95.38 kB / 16.94 MB, free: 6.441 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.0009552/0.0009552, allocations: 187.5 kB / 17.83 MB, free: 6.008 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.408/1.408, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004822/0.0004825, allocations: 12 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09469/0.09519, allocations: 47.59 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00277/0.09801, allocations: 2.362 MB / 330.8 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.09913, allocations: 0.7182 MB / 331.5 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.09927, allocations: 4 kB / 331.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.591e-05/0.09935, allocations: 35.69 kB / 331.5 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.09958, allocations: 131.6 kB / 331.7 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.0998, allocations: 71.91 kB / 331.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003188/0.1001, allocations: 279.4 kB / 332 MB, free: 392 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.1003, allocations: 77.67 kB / 332.1 MB, free: 320 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.1005, allocations: 127.5 kB / 332.2 MB, free: 192 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.1007, allocations: 143.4 kB / 332.4 MB, free: 48 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.818e-05/0.1007, allocations: 16 kB / 332.4 MB, free: 32 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.432e-05/0.1008, allocations: 20 kB / 332.4 MB, free: 12 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.881e-05/0.1009, allocations: 55.8 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.516e-05/0.1009, allocations: 85.52 kB / 332.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.1012, allocations: 275.5 kB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.1012, allocations: 0 / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1012, allocations: 0 / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1012, allocations: 0 / 332.8 MB, free: 15.6 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009428/0.1022, allocations: 0.5885 MB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.1022, allocations: 8.031 kB / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.556e-05/0.1023, allocations: 74.47 kB / 333.5 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.52e-05/0.1024, allocations: 35.62 kB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.1027, allocations: 262.4 kB / 333.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.1028, allocations: 28.5 kB / 333.8 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.1028, allocations: 24 kB / 333.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005068/0.1033, allocations: 260.9 kB / 334.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1033, allocations: 0 / 334.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.1034, allocations: 15.94 kB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1034, allocations: 4 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005017/0.1039, allocations: 234.1 kB / 334.3 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.1056, allocations: 0.9953 MB / 335.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000538/0.1061, allocations: 308.3 kB / 335.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.1062, allocations: 4.188 kB / 335.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.1062, allocations: 38.75 kB / 335.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.863e-06/0.1062, allocations: 0 / 335.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001278/0.1075, allocations: 0.5816 MB / 336.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.1076, allocations: 55.41 kB / 336.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.1078, allocations: 250.6 kB / 336.5 MB, free: 11.58 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.1079, allocations: 33.7 kB / 336.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.108, allocations: 183.9 kB / 336.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.089e-05/0.108, allocations: 71 kB / 336.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.069e-05/0.1081, allocations: 4 kB / 336.8 MB, free: 11.28 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1082, allocations: 334.8 kB / 337.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.1084, allocations: 84.42 kB / 337.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002227/0.1087, allocations: 119.4 kB / 337.3 MB, free: 10.74 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.1089, allocations: 95.88 kB / 337.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1089, allocations: 0 / 337.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006363/0.1095, allocations: 342.7 kB / 337.8 MB, free: 10.3 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1096, allocations: 4 kB / 337.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.1096, allocations: 4 kB / 337.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002606/0.1098, allocations: 65.67 kB / 337.8 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.1101, allocations: 47.97 kB / 337.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/0.1125, allocations: 2.859 MB / 340.7 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.1127, allocations: 31.73 kB / 340.8 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.836e-05/0.1128, allocations: 8 kB / 340.8 MB, free: 7.008 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001772/0.1129, allocations: 145.7 kB / 340.9 MB, free: 6.855 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.365e-05/0.113, allocations: 27.72 kB / 341 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.949e-05/0.1131, allocations: 34.23 kB / 341 MB, free: 6.793 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.1131, allocations: 4 kB / 341 MB, free: 6.789 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1131, allocations: 0 / 341 MB, free: 6.789 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1131, allocations: 0 / 341 MB, free: 6.789 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.1141, allocations: 0.7027 MB / 341.7 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1142, allocations: 0 / 341.7 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.1143, allocations: 35.97 kB / 341.7 MB, free: 5.988 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.1145, allocations: 69.67 kB / 341.8 MB, free: 5.914 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.1145, allocations: 8 kB / 341.8 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002017/0.1165, allocations: 2.846 MB / 344.7 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1166, allocations: 7.891 kB / 344.7 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006025/0.1172, allocations: 397.6 kB / 345.1 MB, free: 2.379 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.683e-05/0.1172, allocations: 101.4 kB / 345.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.1173, allocations: 4 kB / 345.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.1175, allocations: 39.97 kB / 345.2 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.364e-05/0.1176, allocations: 19.97 kB / 345.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.1176, allocations: 8 kB / 345.2 MB, free: 2.191 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1178, allocations: 193.9 kB / 345.4 MB, free: 2.004 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1178, allocations: 0 / 345.4 MB, free: 2.004 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003952/0.1182, allocations: 95.75 kB / 345.5 MB, free: 1.91 MB / 286.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009483/0.1192, allocations: 0.9284 MB / 346.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007902/0.12, allocations: 465.1 kB / 346.9 MB, free: 476 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.12, allocations: 3.938 kB / 346.9 MB, free: 472 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004125/0.1204, allocations: 349.2 kB / 347.2 MB, free: 96 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.1208, allocations: 48.66 kB / 347.3 MB, free: 48 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.1233, allocations: 1.847 MB / 349.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.1238, allocations: 0.7677 MB / 349.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.1239, allocations: 26.23 kB / 349.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.1241, allocations: 91.41 kB / 350 MB, free: 13.22 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1241, allocations: 0 / 350 MB, free: 13.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.1445, allocations: 5.68 MB / 355.7 MB, free: 7.551 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/0.1448, allocations: 211.1 kB / 355.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/1.981, allocations: 0 / 355.9 MB, free: 7.309 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat