Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_3_2_3_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.001228/0.001228, allocations: 104.8 kB / 15.98 MB, free: 6.711 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.001378/0.001378, allocations: 193.2 kB / 16.91 MB, free: 6.535 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.52/1.52, allocations: 205.1 MB / 222.8 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3275/0.3275, allocations: 43.49 MB / 313.6 MB, free: 8.516 MB / 254.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.001729/0.001729, allocations: 67.12 kB / 382.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1419, allocations: 57.79 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.002221/0.1441, allocations: 0.5502 MB / 440.6 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002521/0.1467, allocations: 1.252 MB / 441.9 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.74e-05/0.1468, allocations: 4 kB / 441.9 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.1468, allocations: 0 / 441.9 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.147, allocations: 7.938 kB / 441.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001718/0.1488, allocations: 223.6 kB / 442.1 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.456e-05/0.1489, allocations: 0 / 442.1 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.1489, allocations: 4 kB / 442.1 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.752e-05/0.1489, allocations: 3.938 kB / 442.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.1491, allocations: 11.98 kB / 442.2 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.767e-06/0.1491, allocations: 0 / 442.2 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003403/0.1525, allocations: 0.6618 MB / 442.8 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.039e-05/0.1526, allocations: 7.938 kB / 442.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.1526, allocations: 0 / 442.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004314/0.153, allocations: 179.7 kB / 443 MB, free: 11.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1531, allocations: 0 / 443 MB, free: 11.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1531, allocations: 4 kB / 443 MB, free: 11.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1531, allocations: 0 / 443 MB, free: 11.77 MB / 382.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.0005186/0.1536, allocations: 385.1 kB / 443.4 MB, free: 11.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.1537, allocations: 15.89 kB / 443.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.63e-05/0.1537, allocations: 30.75 kB / 443.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.19e-05/0.1537, allocations: 0.9375 kB / 443.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.1539, allocations: 168.3 kB / 443.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.154, allocations: 384 / 443.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.154, allocations: 4.375 kB / 443.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.23e-05/0.1541, allocations: 33.64 kB / 443.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1541, allocations: 0 / 443.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.824e-06/0.1541, allocations: 3.938 kB / 443.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.1541, allocations: 4 kB / 443.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.934e-05/0.1541, allocations: 0 / 443.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001545/0.1543, allocations: 149.7 kB / 443.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.533e-05/0.1544, allocations: 26.53 kB / 443.8 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.951e-05/0.1544, allocations: 8.859 kB / 443.8 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.1544, allocations: 3.938 kB / 443.8 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/0.1545, allocations: 60.33 kB / 443.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.312e-06/0.1545, allocations: 0 / 443.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001846/0.1547, allocations: 67.39 kB / 443.9 MB, free: 10.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.1547, allocations: 77.11 kB / 444 MB, free: 10.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.1549, allocations: 97.84 kB / 444.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.1549, allocations: 29.95 kB / 444.1 MB, free: 10.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.64e-05/0.1549, allocations: 80.14 kB / 444.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.155, allocations: 7.844 kB / 444.2 MB, free: 10.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.09e-05/0.155, allocations: 17.72 kB / 444.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1552, allocations: 310.8 kB / 444.5 MB, free: 9.977 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.415e-05/0.1552, allocations: 7.938 kB / 444.6 MB, free: 9.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-06/0.1552, allocations: 0 / 444.6 MB, free: 9.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.43e-05/0.1553, allocations: 64.33 kB / 444.6 MB, free: 9.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1553, allocations: 0 / 444.6 MB, free: 9.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001679/0.1555, allocations: 71.33 kB / 444.7 MB, free: 9.809 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.1555, allocations: 29.7 kB / 444.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1555, allocations: 0 / 444.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.1555, allocations: 0 / 444.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.1555, allocations: 4 kB / 444.7 MB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.1556, allocations: 3.938 kB / 444.7 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.002e-05/0.1556, allocations: 0 / 444.7 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.1556, allocations: 0 / 444.7 MB, free: 9.766 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.635e-05/0.1557, allocations: 143.6 kB / 444.9 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.205e-05/0.1557, allocations: 3.938 kB / 444.9 MB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.346e-05/0.1557, allocations: 3.125 kB / 444.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1557, allocations: 0 / 444.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1558, allocations: 0 / 444.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.1558, allocations: 0 / 444.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.156, allocations: 153.7 kB / 445 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.156, allocations: 7.938 kB / 445 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.156, allocations: 0 / 445 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.156, allocations: 0 / 445 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.156, allocations: 8 kB / 445 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.156, allocations: 0 / 445 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.156, allocations: 0 / 445 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001902/0.1562, allocations: 94.77 kB / 445.1 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.1563, allocations: 81.05 kB / 445.2 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.1563, allocations: 0 / 445.2 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.653e-05/0.1563, allocations: 0 / 445.2 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.206e-05/0.1563, allocations: 11.97 kB / 445.2 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.1563, allocations: 0 / 445.2 MB, free: 9.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.91e-05/0.1564, allocations: 75.28 kB / 445.3 MB, free: 9.086 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1564, allocations: 0 / 445.3 MB, free: 9.086 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003835/0.1568, allocations: 63.98 kB / 445.4 MB, free: 9.023 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001191/0.158, allocations: 0.8667 MB / 446.2 MB, free: 8.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001138/0.1581, allocations: 63.39 kB / 446.3 MB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1581, allocations: 3.938 kB / 446.3 MB, free: 8.043 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.751e-05/0.1582, allocations: 59.47 kB / 446.3 MB, free: 7.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.1583, allocations: 3.938 kB / 446.4 MB, free: 7.969 MB / 382.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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 3.2.3+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.0005105/0.1588, allocations: 154.5 kB / 446.5 MB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.1591, allocations: 0.6729 MB / 447.2 MB, free: 7.078 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.41e-05/0.1592, allocations: 3.906 kB / 447.2 MB, free: 7.074 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.519e-05/0.1592, allocations: 7.438 kB / 447.2 MB, free: 7.066 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1592, allocations: 3.938 kB / 447.2 MB, free: 7.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0833/0.2425, allocations: 2.423 MB / 449.6 MB, free: 4.629 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/0.2428, allocations: 229.9 kB / 449.8 MB, free: 4.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.019/2.261, allocations: 3.938 kB / 449.8 MB, free: 4.363 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches