Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",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.0008204/0.0008205, allocations: 93.88 kB / 17 MB, free: 6.402 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.0007835/0.0007837, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.378/1.378, allocations: 223.2 MB / 241.9 MB, free: 304 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2109/0.2109, allocations: 44.22 MB / 337.2 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004175/0.0004177, allocations: 15.92 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1281, allocations: 61.91 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.000575/0.1287, allocations: 210.9 kB / 471.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.1305, allocations: 1.196 MB / 473 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.914e-05/0.1305, allocations: 3.938 kB / 473 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.273e-05/0.1306, allocations: 0 / 473 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.1307, allocations: 7.984 kB / 473.1 MB, free: 12.21 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005538/0.1313, allocations: 179.6 kB / 473.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.209e-05/0.1313, allocations: 3.984 kB / 473.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.793e-05/0.1314, allocations: 4 kB / 473.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.002e-05/0.1314, allocations: 11.86 kB / 473.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.938e-05/0.1315, allocations: 7.984 kB / 473.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.213e-06/0.1315, allocations: 4 kB / 473.3 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007844/0.1323, allocations: 0.4919 MB / 473.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-06/0.1323, allocations: 0 / 473.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.69e-05/0.1323, allocations: 29.64 kB / 473.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.1325, allocations: 123.7 kB / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1325, allocations: 0 / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1325, allocations: 0 / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1325, allocations: 0 / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003735/0.1329, allocations: 387.3 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.133, allocations: 12.03 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.893e-05/0.133, allocations: 38.5 kB / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.087e-05/0.133, allocations: 0 / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.1332, allocations: 159.1 kB / 474.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.1332, allocations: 3.984 kB / 474.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.1332, allocations: 7.953 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.992e-05/0.1333, allocations: 25.7 kB / 474.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.1333, allocations: 3.984 kB / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.633e-06/0.1333, allocations: 0 / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.1333, allocations: 0 / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.676e-05/0.1334, allocations: 11.94 kB / 474.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.1335, allocations: 153.7 kB / 474.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.441e-05/0.1335, allocations: 18.61 kB / 474.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.251e-05/0.1335, allocations: 4.859 kB / 474.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.801e-06/0.1336, allocations: 0 / 474.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.1336, allocations: 64.28 kB / 474.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.1336, allocations: 0 / 474.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001668/0.1338, allocations: 75.33 kB / 474.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.1338, allocations: 77.11 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.815e-05/0.1339, allocations: 97.77 kB / 475 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.1339, allocations: 25.7 kB / 475 MB, free: 9.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.086e-05/0.134, allocations: 80.14 kB / 475.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.134, allocations: 0 / 475.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.004e-06/0.134, allocations: 0 / 475.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1341, allocations: 327.1 kB / 475.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.983e-06/0.1341, allocations: 0 / 475.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.039e-06/0.1341, allocations: 0 / 475.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.242e-05/0.1341, allocations: 29.7 kB / 475.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1341, allocations: 0 / 475.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.108e-05/0.1342, allocations: 63.34 kB / 475.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.1343, allocations: 33.66 kB / 475.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1343, allocations: 7.922 kB / 475.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.1343, allocations: 0 / 475.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.1343, allocations: 96 / 475.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1343, allocations: 8 kB / 475.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.518e-05/0.1343, allocations: 0 / 475.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.1343, allocations: 0 / 475.6 MB, free: 9.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.204e-05/0.1344, allocations: 144 kB / 475.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.1344, allocations: 0 / 475.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.31e-05/0.1345, allocations: 11.03 kB / 475.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1345, allocations: 0 / 475.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.1345, allocations: 0 / 475.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.1345, allocations: 0 / 475.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.516e-05/0.1346, allocations: 153.7 kB / 475.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1346, allocations: 0 / 475.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1346, allocations: 0 / 475.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.1346, allocations: 0 / 475.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.1346, allocations: 0 / 475.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.1346, allocations: 7.953 kB / 475.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1346, allocations: 0 / 475.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.639e-05/0.1347, allocations: 94.77 kB / 476 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.1348, allocations: 81.14 kB / 476.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1348, allocations: 3.984 kB / 476.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.119e-05/0.1348, allocations: 0 / 476.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.1348, allocations: 11.95 kB / 476.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-06/0.1348, allocations: 0 / 476.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.409e-05/0.1349, allocations: 75.28 kB / 476.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1349, allocations: 0 / 476.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002858/0.1352, allocations: 59.98 kB / 476.2 MB, free: 8.672 MB / 350.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008665/0.136, allocations: 0.8799 MB / 477.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.163e-05/0.1361, allocations: 59.34 kB / 477.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1361, allocations: 0 / 477.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.071e-05/0.1362, allocations: 63.47 kB / 477.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.1363, allocations: 3.953 kB / 477.2 MB, free: 7.691 MB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Resources/Data") at compile-time; copying all loaded packages into the FMU Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004139/0.1367, allocations: 148.2 kB / 477.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.137, allocations: 0.677 MB / 478 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.967e-06/0.137, allocations: 0 / 478 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.518e-05/0.137, allocations: 11.44 kB / 478 MB, free: 6.789 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.137, allocations: 4 kB / 478 MB, free: 6.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1287/0.2657, allocations: 2.273 MB / 480.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003096/0.2661, allocations: 221 kB / 480.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.15, allocations: 7.438 kB / 480.5 MB, free: 4.363 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat does not exist to compare? outputFormat=mat