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.00123/0.00123, allocations: 95.64 kB / 16.98 MB, free: 5.938 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.001432/0.001432, allocations: 186.9 kB / 17.88 MB, free: 5.594 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.356/1.356, allocations: 223.2 MB / 241.8 MB, free: 396 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.2075/0.2075, allocations: 44.23 MB / 337.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004438/0.0004439, allocations: 4 kB / 409.6 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1553, allocations: 61.91 MB / 471.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0006923/0.1561, allocations: 206.9 kB / 471.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.1581, allocations: 1.204 MB / 472.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.154e-05/0.1581, allocations: 0 / 472.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.183e-05/0.1582, allocations: 4 kB / 472.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.1583, allocations: 4 kB / 472.9 MB, free: 12.25 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.0005809/0.1589, allocations: 183.4 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.683e-05/0.159, allocations: 4 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.733e-05/0.159, allocations: 3.984 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.324e-05/0.1591, allocations: 0 / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.1592, allocations: 11.98 kB / 473.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.846e-06/0.1592, allocations: 0 / 473.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005353/0.1597, allocations: 306.6 kB / 473.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.1598, allocations: 3.984 kB / 473.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.341e-05/0.1598, allocations: 25.7 kB / 473.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002036/0.16, allocations: 119.8 kB / 473.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.16, allocations: 0 / 473.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.16, allocations: 0 / 473.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.16, allocations: 4 kB / 473.6 MB, free: 11.6 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.0004564/0.1605, allocations: 385 kB / 474 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.1606, allocations: 8.031 kB / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.416e-05/0.1606, allocations: 30.56 kB / 474 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.473e-05/0.1606, allocations: 3.938 kB / 474 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.1608, allocations: 163.1 kB / 474.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.1608, allocations: 4 kB / 474.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.1608, allocations: 3.953 kB / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.902e-05/0.1609, allocations: 41.69 kB / 474.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1609, allocations: 0 / 474.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.1609, allocations: 0 / 474.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.1609, allocations: 0 / 474.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.786e-05/0.161, allocations: 0 / 474.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.1611, allocations: 150 kB / 474.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.04e-05/0.1612, allocations: 22.52 kB / 474.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.1612, allocations: 0 / 474.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.472e-05/0.1613, allocations: 68.31 kB / 474.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.1613, allocations: 0 / 474.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001912/0.1615, allocations: 63.39 kB / 474.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.1615, allocations: 81.09 kB / 474.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.351e-05/0.1616, allocations: 101.8 kB / 474.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.1616, allocations: 29.64 kB / 474.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.1617, allocations: 80.14 kB / 474.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.1617, allocations: 4.188 kB / 474.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.1617, allocations: 4 kB / 474.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1618, allocations: 314.8 kB / 475.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-06/0.1618, allocations: 0 / 475.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.769e-06/0.1619, allocations: 0 / 475.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.898e-05/0.1619, allocations: 33.69 kB / 475.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1619, allocations: 0 / 475.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.643e-05/0.162, allocations: 67.34 kB / 475.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.162, allocations: 29.7 kB / 475.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.162, allocations: 8.047 kB / 475.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.162, allocations: 0 / 475.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-06/0.162, allocations: 4 kB / 475.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1621, allocations: 0 / 475.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.983e-05/0.1621, allocations: 3.984 kB / 475.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.1621, allocations: 3.938 kB / 475.3 MB, free: 9.664 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.88e-05/0.1622, allocations: 140 kB / 475.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-06/0.1622, allocations: 0 / 475.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.39e-05/0.1622, allocations: 7.078 kB / 475.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.1622, allocations: 7.953 kB / 475.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.1622, allocations: 0 / 475.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1622, allocations: 0 / 475.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.386e-05/0.1623, allocations: 153.7 kB / 475.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.1623, allocations: 0 / 475.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1623, allocations: 0 / 475.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.1624, allocations: 0 / 475.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.1624, allocations: 4 kB / 475.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1624, allocations: 0 / 475.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1624, allocations: 3.953 kB / 475.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.922e-05/0.1625, allocations: 94.83 kB / 475.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.76e-05/0.1625, allocations: 77.11 kB / 475.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.1625, allocations: 0 / 475.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.1626, allocations: 0 / 475.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.792e-05/0.1626, allocations: 7.953 kB / 475.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.1626, allocations: 7.969 kB / 475.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.28e-05/0.1626, allocations: 79.22 kB / 475.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1626, allocations: 4.125 kB / 475.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003012/0.163, allocations: 63.98 kB / 475.9 MB, free: 8.918 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.0008757/0.1638, allocations: 0.8579 MB / 476.8 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.218e-05/0.1639, allocations: 59.41 kB / 476.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1639, allocations: 0 / 476.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.183e-05/0.164, allocations: 59.34 kB / 476.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.355e-05/0.1641, allocations: 0 / 476.9 MB, free: 7.961 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.0004163/0.1645, allocations: 148.3 kB / 477 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.1648, allocations: 0.677 MB / 477.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.022e-05/0.1648, allocations: 0 / 477.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.533e-05/0.1648, allocations: 15.56 kB / 477.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1648, allocations: 0 / 477.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1161/0.281, allocations: 2.273 MB / 480 MB, free: 4.887 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.2812, allocations: 211.7 kB / 480.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/1.998, allocations: 0 / 480.2 MB, free: 4.645 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