Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_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.0009824/0.0009824, 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.0009724/0.0009726, allocations: 183.1 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.523/1.523, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002749, allocations: 6.922 kB / 300.9 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.122, allocations: 50.43 MB / 351.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003161/0.1252, allocations: 2.541 MB / 353.9 MB, free: 9.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1264, allocations: 0.6664 MB / 354.5 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.1265, allocations: 8 kB / 354.6 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.1267, allocations: 39.67 kB / 354.6 MB, free: 8.363 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001738/0.1269, allocations: 87.25 kB / 354.7 MB, free: 8.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002884/0.1272, allocations: 63.92 kB / 354.7 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004306/0.1276, allocations: 374.2 kB / 355.1 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002287/0.1279, allocations: 81.69 kB / 355.2 MB, free: 7.766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.1281, allocations: 131.6 kB / 355.3 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.1282, allocations: 143.3 kB / 355.5 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.1283, allocations: 16 kB / 355.5 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.498e-05/0.1284, allocations: 16 kB / 355.5 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.553e-05/0.1284, allocations: 55.75 kB / 355.5 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.969e-05/0.1285, allocations: 85.52 kB / 355.6 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.1288, allocations: 279.2 kB / 355.9 MB, free: 7.047 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1288, allocations: 0 / 355.9 MB, free: 7.047 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1288, allocations: 0 / 355.9 MB, free: 7.047 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.1288, allocations: 0 / 355.9 MB, free: 7.047 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.000938/0.1298, allocations: 0.5884 MB / 356.5 MB, free: 6.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.1298, allocations: 8.031 kB / 356.5 MB, free: 6.402 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.655e-05/0.1299, allocations: 66.53 kB / 356.6 MB, free: 6.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.13, allocations: 39.58 kB / 356.6 MB, free: 6.289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.1303, allocations: 270.4 kB / 356.9 MB, free: 5.984 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.1304, allocations: 28.56 kB / 356.9 MB, free: 5.957 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.1304, allocations: 24 kB / 356.9 MB, free: 5.934 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005125/0.1309, allocations: 260.9 kB / 357.2 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.131, allocations: 3.984 kB / 357.2 MB, free: 5.672 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.131, allocations: 12 kB / 357.2 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.131, allocations: 11.95 kB / 357.2 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.1315, allocations: 234.1 kB / 357.4 MB, free: 5.418 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.1331, allocations: 0.9798 MB / 358.4 MB, free: 4.371 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.1336, allocations: 314.6 kB / 358.7 MB, free: 4.039 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.1338, allocations: 117.2 kB / 358.8 MB, free: 3.922 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1339, allocations: 4.188 kB / 358.8 MB, free: 3.918 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.1339, allocations: 34.75 kB / 358.9 MB, free: 3.875 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.1339, allocations: 0 / 358.9 MB, free: 3.875 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001316/0.1352, allocations: 0.5944 MB / 359.5 MB, free: 3.234 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.1353, allocations: 59.39 kB / 359.5 MB, free: 3.164 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.1356, allocations: 246.6 kB / 359.8 MB, free: 2.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.1356, allocations: 33.7 kB / 359.8 MB, free: 2.871 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.1357, allocations: 183.8 kB / 360 MB, free: 2.684 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.591e-05/0.1358, allocations: 74.98 kB / 360 MB, free: 2.609 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.105e-05/0.1358, allocations: 8 kB / 360 MB, free: 2.602 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.136, allocations: 334.8 kB / 360.4 MB, free: 2.266 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.1362, allocations: 84.36 kB / 360.5 MB, free: 2.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.1364, allocations: 119.4 kB / 360.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.1366, allocations: 91.92 kB / 360.7 MB, free: 1.965 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1366, allocations: 0 / 360.7 MB, free: 1.965 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006144/0.1372, allocations: 334.8 kB / 361 MB, free: 1.625 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.1372, allocations: 7.984 kB / 361 MB, free: 1.617 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1373, allocations: 0 / 361 MB, free: 1.617 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002694/0.1375, allocations: 69.67 kB / 361.1 MB, free: 1.543 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.1377, allocations: 47.92 kB / 361.1 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/0.1399, allocations: 2.827 MB / 363.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.1401, allocations: 39.77 kB / 364 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.1402, allocations: 8 kB / 364 MB, free: 14.36 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 (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.0001648/0.1403, allocations: 146 kB / 364.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-05/0.1404, allocations: 23.72 kB / 364.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.821e-05/0.1405, allocations: 30.14 kB / 364.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1405, allocations: 0 / 364.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.1405, allocations: 7.984 kB / 364.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1405, allocations: 0 / 364.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009998/0.1415, allocations: 0.7049 MB / 364.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.1415, allocations: 11.94 kB / 364.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.1417, allocations: 23.98 kB / 364.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000183/0.1418, allocations: 73.67 kB / 365 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.1419, allocations: 4 kB / 365 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002125/0.144, allocations: 2.823 MB / 367.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.144, allocations: 4.125 kB / 367.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006214/0.1446, allocations: 391.3 kB / 368.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.347e-05/0.1447, allocations: 112.7 kB / 368.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.1448, allocations: 0 / 368.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.145, allocations: 39.97 kB / 368.4 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.1451, allocations: 27.91 kB / 368.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.1451, allocations: 8 kB / 368.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000178/0.1453, allocations: 182 kB / 368.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1453, allocations: 0 / 368.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003933/0.1457, allocations: 95.75 kB / 368.7 MB, free: 9.297 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 (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.001021/0.1467, allocations: 0.9328 MB / 369.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008633/0.1476, allocations: 472.9 kB / 370.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1476, allocations: 0 / 370.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004581/0.1481, allocations: 350.6 kB / 370.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.1486, allocations: 52.41 kB / 370.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.1514, allocations: 1.553 MB / 372 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.1518, allocations: 0.7639 MB / 372.8 MB, free: 5.008 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.152, allocations: 22.28 kB / 372.8 MB, free: 4.988 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.1522, allocations: 95.39 kB / 372.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of SimCode: time 1.312e-06/0.1522, allocations: 0 / 372.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.171, allocations: 5.679 MB / 378.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.1713, allocations: 221.9 kB / 378.8 MB, free: 15.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.05/2.222, allocations: 0 / 378.8 MB, free: 15.16 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat