Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007923/0.0007923, allocations: 78.44 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3405/0.3405, allocations: 43.57 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004065/0.0004068, allocations: 16 kB / 432.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1174, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume): time 0.3981/0.5155, allocations: 148.6 MB / 0.6245 GB, free: 2.188 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.006305/0.5219, allocations: 3.885 MB / 0.6283 GB, free: 14.3 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007381/0.5227, allocations: 15.88 kB / 0.6283 GB, free: 14.29 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000826/0.5235, allocations: 170.9 kB / 0.6285 GB, free: 14.12 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00281/0.5263, allocations: 0.7426 MB / 0.6292 GB, free: 13.37 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.5283, allocations: 0.538 MB / 0.6298 GB, free: 12.84 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.00181/0.5301, allocations: 1.345 MB / 0.6311 GB, free: 11.5 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006506/0.5308, allocations: 285.9 kB / 0.6313 GB, free: 11.22 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.5318, allocations: 406.5 kB / 0.6317 GB, free: 10.82 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007048/0.5325, allocations: 366.5 kB / 0.6321 GB, free: 10.46 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.5327, allocations: 24 kB / 0.6321 GB, free: 10.44 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001311/0.534, allocations: 0.4898 MB / 0.6326 GB, free: 9.949 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002368/0.5342, allocations: 131.6 kB / 0.6327 GB, free: 9.82 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004179/0.5347, allocations: 260.6 kB / 0.6329 GB, free: 9.559 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.5357, allocations: 0.6937 MB / 0.6336 GB, free: 8.863 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.5357, allocations: 4 kB / 0.6336 GB, free: 8.859 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5358, allocations: 0 / 0.6336 GB, free: 8.859 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.574e-05/0.5358, allocations: 0 / 0.6336 GB, free: 8.859 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001834/0.5376, allocations: 0.8174 MB / 0.6344 GB, free: 7.992 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.5377, allocations: 12.03 kB / 0.6344 GB, free: 7.98 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.5378, allocations: 70.53 kB / 0.6345 GB, free: 7.902 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004188/0.5383, allocations: 75.41 kB / 0.6346 GB, free: 7.828 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006403/0.5389, allocations: 386.4 kB / 0.6349 GB, free: 7.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.681e-05/0.539, allocations: 65.56 kB / 0.635 GB, free: 7.344 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.353e-05/0.5391, allocations: 39.91 kB / 0.635 GB, free: 7.305 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.5402, allocations: 0.5399 MB / 0.6356 GB, free: 6.723 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/0.5402, allocations: 8 kB / 0.6356 GB, free: 6.715 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.421e-05/0.5403, allocations: 12 kB / 0.6356 GB, free: 6.703 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.705e-05/0.5403, allocations: 20.66 kB / 0.6356 GB, free: 6.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009372/0.5413, allocations: 422.2 kB / 0.636 GB, free: 6.27 MB / 458.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003495/0.5448, allocations: 2.514 MB / 0.6385 GB, free: 3.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008177/0.5456, allocations: 359.4 kB / 0.6388 GB, free: 3.211 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003892/0.546, allocations: 181.2 kB / 0.639 GB, free: 3.031 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.047e-05/0.5461, allocations: 8.266 kB / 0.639 GB, free: 3.023 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005596/0.5466, allocations: 280.2 kB / 0.6393 GB, free: 2.727 MB / 458.7 MB Notification: Performance of pre-optimization done (n=34): time 2.154e-06/0.5466, allocations: 0 / 0.6393 GB, free: 2.727 MB / 458.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: sweptVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=46): time 0.01235/0.559, allocations: 3.601 MB / 0.6428 GB, free: 15 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.672e-05/0.5591, allocations: 158.2 kB / 0.6429 GB, free: 14.81 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005098/0.5596, allocations: 393.4 kB / 0.6433 GB, free: 14.42 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.601e-05/0.5597, allocations: 37.7 kB / 0.6433 GB, free: 14.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/0.5599, allocations: 252 kB / 0.6436 GB, free: 14.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.5601, allocations: 161.6 kB / 0.6437 GB, free: 13.96 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.5601, allocations: 12 kB / 0.6437 GB, free: 13.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.5603, allocations: 354.8 kB / 0.6441 GB, free: 13.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006347/0.5609, allocations: 245.1 kB / 0.6443 GB, free: 13.36 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007474/0.5617, allocations: 429.1 kB / 0.6447 GB, free: 12.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.5631, allocations: 0.6824 MB / 0.6454 GB, free: 12.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.5631, allocations: 0 / 0.6454 GB, free: 12.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001888/0.565, allocations: 0.8099 MB / 0.6462 GB, free: 11.28 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.326e-05/0.5651, allocations: 41.69 kB / 0.6462 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.5651, allocations: 4 kB / 0.6462 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004704/0.5656, allocations: 117.4 kB / 0.6463 GB, free: 11.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005536/0.5661, allocations: 151.7 kB / 0.6465 GB, free: 10.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006323/0.5668, allocations: 0.6773 MB / 0.6471 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006063/0.5674, allocations: 67.94 kB / 0.6472 GB, free: 10.19 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.697e-05/0.5675, allocations: 44.06 kB / 0.6473 GB, free: 10.15 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,sweptVolume.regularFlow[1],sweptVolume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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: 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002908/0.5678, allocations: 205.6 kB / 0.6475 GB, free: 9.938 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.5679, allocations: 51.38 kB / 0.6475 GB, free: 9.887 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002048/0.57, allocations: 0.7829 MB / 0.6483 GB, free: 9.094 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.57, allocations: 4 kB / 0.6483 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.57, allocations: 4 kB / 0.6483 GB, free: 9.086 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.57, allocations: 3.984 kB / 0.6483 GB, free: 9.082 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/0.5727, allocations: 1.327 MB / 0.6496 GB, free: 7.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.5727, allocations: 8.156 kB / 0.6496 GB, free: 7.672 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004807/0.5732, allocations: 119.8 kB / 0.6497 GB, free: 7.555 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005666/0.5738, allocations: 108.8 kB / 0.6498 GB, free: 7.445 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-05/0.5738, allocations: 16 kB / 0.6498 GB, free: 7.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/0.5757, allocations: 1.696 MB / 0.6515 GB, free: 5.602 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.5757, allocations: 3.75 kB / 0.6515 GB, free: 5.602 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002313/0.578, allocations: 1.04 MB / 0.6525 GB, free: 4.523 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002552/0.5783, allocations: 164.5 kB / 0.6526 GB, free: 4.344 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.478e-05/0.5784, allocations: 12 kB / 0.6527 GB, free: 4.332 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005135/0.5789, allocations: 63.94 kB / 0.6527 GB, free: 4.27 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/0.5791, allocations: 67.84 kB / 0.6528 GB, free: 4.203 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.11e-05/0.5792, allocations: 39.92 kB / 0.6528 GB, free: 4.164 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00032/0.5795, allocations: 271.1 kB / 0.6531 GB, free: 3.902 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5795, allocations: 0 / 0.6531 GB, free: 3.902 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009002/0.5804, allocations: 239.9 kB / 0.6533 GB, free: 3.668 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (sweptVolume.medium.T,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003495/0.5839, allocations: 1.788 MB / 0.6551 GB, free: 1.848 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.5855, allocations: 0.6493 MB / 0.6557 GB, free: 1.188 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.5855, allocations: 3.938 kB / 0.6557 GB, free: 1.184 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008333/0.5863, allocations: 437.6 kB / 0.6561 GB, free: 0.7461 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.5875, allocations: 200.5 kB / 0.6563 GB, free: 0.5586 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006471/0.594, allocations: 3.462 MB / 0.6597 GB, free: 12.96 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005168/0.5945, allocations: 0.8552 MB / 0.6605 GB, free: 12.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004497/0.595, allocations: 199.4 kB / 0.6607 GB, free: 11.88 MB / 490.7 MB Notification: Performance of SimCode: time 7.01e-07/0.595, allocations: 4 kB / 0.6607 GB, free: 11.88 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.495/5.09, allocations: 12.2 MB / 0.6726 GB, free: 148.6 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Machines/TestSweptVolume/TestSweptVolume.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches