Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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 4.0.0+maint.om/package.mo", uses=false) 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) 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.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",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.000983/0.0009829, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.00122/0.00122, allocations: 180.4 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.3 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002974/0.0002978, allocations: 8 kB / 300.9 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1277, allocations: 50.42 MB / 351.3 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002775/0.1305, allocations: 1.771 MB / 353.1 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.1315, allocations: 0.5224 MB / 353.6 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.956e-05/0.1317, allocations: 4 kB / 353.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.1318, allocations: 11.91 kB / 353.6 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.94e-05/0.1319, allocations: 35.7 kB / 353.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.1321, allocations: 35.89 kB / 353.7 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002004/0.1323, allocations: 147.2 kB / 353.9 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.1325, allocations: 45.42 kB / 353.9 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.1326, allocations: 55.78 kB / 354 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.1327, allocations: 51.77 kB / 354 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.1328, allocations: 4 kB / 354 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-05/0.1328, allocations: 12 kB / 354 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.494e-05/0.1329, allocations: 23.86 kB / 354 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.143e-05/0.1329, allocations: 49.64 kB / 354.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.1331, allocations: 127.9 kB / 354.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1331, allocations: 0 / 354.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1331, allocations: 0 / 354.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.1331, allocations: 4 kB / 354.2 MB, free: 0.7812 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005965/0.1337, allocations: 415.1 kB / 354.6 MB, free: 332 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.1338, allocations: 8.031 kB / 354.6 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.928e-05/0.1338, allocations: 46.55 kB / 354.7 MB, free: 268 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.117e-05/0.1339, allocations: 23.81 kB / 354.7 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.1342, allocations: 198.8 kB / 354.9 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.1342, allocations: 8.281 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.1342, allocations: 12 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.1345, allocations: 112.4 kB / 355 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1345, allocations: 0 / 355 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.1346, allocations: 15.94 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1346, allocations: 0 / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.1348, allocations: 88.66 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009098/0.1357, allocations: 0.6096 MB / 355.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.136, allocations: 82.62 kB / 355.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.401e-05/0.1361, allocations: 32.97 kB / 355.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.1361, allocations: 0 / 355.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.1362, allocations: 46.45 kB / 355.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.1362, allocations: 0 / 355.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006664/0.1368, allocations: 259.4 kB / 356.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.1369, allocations: 51.41 kB / 356.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.137, allocations: 148.6 kB / 356.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.1371, allocations: 25.7 kB / 356.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1372, allocations: 139.8 kB / 356.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.1372, allocations: 27.64 kB / 356.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.93e-06/0.1372, allocations: 4 kB / 356.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1374, allocations: 326.7 kB / 356.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.331e-05/0.1375, allocations: 24 kB / 356.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-05/0.1376, allocations: 46.55 kB / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.219e-05/0.1377, allocations: 28 kB / 357 MB, free: 13.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1377, allocations: 0 / 357 MB, free: 13.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002689/0.1379, allocations: 142.3 kB / 357.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.138, allocations: 7.953 kB / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.138, allocations: 256 / 357.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002162/0.1382, allocations: 44.91 kB / 357.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.835e-05/0.1383, allocations: 11.98 kB / 357.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.1401, allocations: 1.505 MB / 358.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.353e-05/0.1402, allocations: 11.84 kB / 358.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.1402, allocations: 4 kB / 358.7 MB, free: 11.89 MB / 302.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 (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.1404, allocations: 129.8 kB / 358.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.091e-05/0.1404, allocations: 11.91 kB / 358.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.437e-05/0.1404, allocations: 12.7 kB / 358.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1404, allocations: 0 / 358.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1404, allocations: 4 kB / 358.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.1405, allocations: 0 / 358.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000258/0.1407, allocations: 217.5 kB / 359 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1407, allocations: 0 / 359 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.598e-05/0.1408, allocations: 4 kB / 359.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.1409, allocations: 40.95 kB / 359.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.1409, allocations: 4 kB / 359.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.1422, allocations: 1.498 MB / 360.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1422, allocations: 0 / 360.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.1425, allocations: 216.2 kB / 360.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.063e-05/0.1426, allocations: 93.08 kB / 360.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.1426, allocations: 0 / 360.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.615e-05/0.1427, allocations: 12.12 kB / 360.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.1428, allocations: 8.031 kB / 360.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.1428, allocations: 11.92 kB / 360.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.9e-05/0.1429, allocations: 107.3 kB / 361 MB, free: 9.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1429, allocations: 3.938 kB / 361 MB, free: 9.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003602/0.1432, allocations: 43.84 kB / 361.1 MB, free: 9.262 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005872/0.1438, allocations: 0.7524 MB / 361.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004104/0.1442, allocations: 194.6 kB / 362 MB, free: 8.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1443, allocations: 0 / 362 MB, free: 8.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000219/0.1445, allocations: 154.6 kB / 362.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.1448, allocations: 8.125 kB / 362.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.1462, allocations: 0.8065 MB / 363 MB, free: 7.242 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.1465, allocations: 0.7082 MB / 363.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.179e-05/0.1465, allocations: 448 / 363.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.294e-05/0.1466, allocations: 39.42 kB / 363.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1466, allocations: 0 / 363.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01456/0.1612, allocations: 2.581 MB / 366.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.1614, allocations: 214.2 kB / 366.5 MB, free: 3.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/2.05, allocations: 0 / 366.5 MB, free: 3.789 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat