Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001358/0.001358, allocations: 198.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 226.5 MB / 243.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007275/0.0007275, allocations: 96.64 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3122/0.3122, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.000275, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3262, allocations: 62.96 MB / 0.516 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume): time 0.1599/0.4861, allocations: 146.1 MB / 0.6586 GB, free: 7.008 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.4896, allocations: 1.622 MB / 0.6602 GB, free: 5.383 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007086/0.4904, allocations: 15.88 kB / 0.6602 GB, free: 5.367 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007846/0.4912, allocations: 174.8 kB / 0.6604 GB, free: 5.195 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002605/0.4938, allocations: 0.6843 MB / 0.661 GB, free: 4.508 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001792/0.4956, allocations: 0.5458 MB / 0.6616 GB, free: 3.969 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.001944/0.4976, allocations: 1.349 MB / 0.6629 GB, free: 2.617 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007264/0.4983, allocations: 282.1 kB / 0.6632 GB, free: 2.34 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001145/0.4995, allocations: 410.4 kB / 0.6635 GB, free: 1.938 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007625/0.5002, allocations: 366.6 kB / 0.6639 GB, free: 1.578 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.5004, allocations: 24 kB / 0.6639 GB, free: 1.555 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001296/0.5017, allocations: 482.1 kB / 0.6644 GB, free: 1.086 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002524/0.502, allocations: 127.6 kB / 0.6645 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004866/0.5025, allocations: 272.5 kB / 0.6648 GB, free: 0.6875 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.5036, allocations: 0.6877 MB / 0.6654 GB, free: 0 / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.5036, allocations: 0 / 0.6654 GB, free: 0 / 474.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.5036, allocations: 0 / 0.6654 GB, free: 0 / 474.7 MB Notification: Performance of Transformations before backend: time 2.415e-05/0.5037, allocations: 0 / 0.6654 GB, free: 0 / 474.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.002031/0.5057, allocations: 0.8167 MB / 0.6662 GB, free: 15.13 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.5058, allocations: 12.88 kB / 0.6662 GB, free: 15.12 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001811/0.506, allocations: 70.53 kB / 0.6663 GB, free: 15.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004221/0.5064, allocations: 79.27 kB / 0.6664 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007064/0.5071, allocations: 394.3 kB / 0.6668 GB, free: 14.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.5072, allocations: 66.64 kB / 0.6668 GB, free: 14.46 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.988e-05/0.5073, allocations: 36 kB / 0.6669 GB, free: 14.42 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.5084, allocations: 0.5311 MB / 0.6674 GB, free: 13.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.5084, allocations: 8 kB / 0.6674 GB, free: 13.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.44e-05/0.5085, allocations: 15.98 kB / 0.6674 GB, free: 13.83 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-05/0.5085, allocations: 16.66 kB / 0.6674 GB, free: 13.82 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009799/0.5095, allocations: 430.1 kB / 0.6678 GB, free: 13.39 MB / 490.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.003479/0.513, allocations: 2.481 MB / 0.6702 GB, free: 10.74 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008259/0.5138, allocations: 374.3 kB / 0.6706 GB, free: 10.37 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003943/0.5142, allocations: 169.3 kB / 0.6708 GB, free: 10.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/0.5143, allocations: 4.281 kB / 0.6708 GB, free: 10.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005824/0.5149, allocations: 284.7 kB / 0.671 GB, free: 9.895 MB / 490.7 MB Notification: Performance of pre-optimization done (n=34): time 2.976e-06/0.5149, allocations: 0 / 0.671 GB, free: 9.895 MB / 490.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.01237/0.5273, allocations: 3.604 MB / 0.6746 GB, free: 6.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/0.5274, allocations: 162.2 kB / 0.6747 GB, free: 5.965 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.5279, allocations: 385.5 kB / 0.6751 GB, free: 5.578 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.978e-05/0.5279, allocations: 41.64 kB / 0.6751 GB, free: 5.531 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.5281, allocations: 256 kB / 0.6754 GB, free: 5.277 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.5283, allocations: 161.7 kB / 0.6755 GB, free: 5.117 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.5283, allocations: 12 kB / 0.6755 GB, free: 5.105 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.5285, allocations: 358.8 kB / 0.6759 GB, free: 4.746 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000614/0.5291, allocations: 241.1 kB / 0.6761 GB, free: 4.512 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007274/0.5298, allocations: 425.1 kB / 0.6765 GB, free: 4.016 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.5312, allocations: 0.6824 MB / 0.6772 GB, free: 3.258 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.5312, allocations: 4 kB / 0.6772 GB, free: 3.254 MB / 490.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001897/0.5331, allocations: 0.8143 MB / 0.678 GB, free: 2.422 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.5332, allocations: 45.77 kB / 0.678 GB, free: 2.371 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.5332, allocations: 7.938 kB / 0.678 GB, free: 2.363 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000482/0.5337, allocations: 116.8 kB / 0.6781 GB, free: 2.246 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/0.5343, allocations: 151.8 kB / 0.6783 GB, free: 2.098 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006166/0.5349, allocations: 0.6733 MB / 0.6789 GB, free: 1.398 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006058/0.5355, allocations: 64.02 kB / 0.679 GB, free: 1.336 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.545e-05/0.5356, allocations: 47.98 kB / 0.679 GB, free: 1.289 MB / 490.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.0003291/0.5359, allocations: 197.6 kB / 0.6792 GB, free: 1.086 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.536, allocations: 55.42 kB / 0.6793 GB, free: 1.031 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.5381, allocations: 0.772 MB / 0.68 GB, free: 248 kB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.5381, allocations: 8 kB / 0.68 GB, free: 240 kB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.5382, allocations: 0 / 0.68 GB, free: 240 kB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.5382, allocations: 3.984 kB / 0.6801 GB, free: 236 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2534/0.7916, allocations: 1.323 MB / 0.6813 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.7916, allocations: 2.875 kB / 0.6813 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005169/0.7922, allocations: 114.5 kB / 0.6815 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005849/0.7928, allocations: 112.1 kB / 0.6816 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.168e-05/0.7928, allocations: 16.28 kB / 0.6816 GB, free: 144.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/0.7945, allocations: 1.706 MB / 0.6832 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.7945, allocations: 1.562 kB / 0.6832 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00226/0.7968, allocations: 1.043 MB / 0.6843 GB, free: 142.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.797, allocations: 160.2 kB / 0.6844 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.511e-05/0.7971, allocations: 12.77 kB / 0.6844 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005042/0.7976, allocations: 64.91 kB / 0.6845 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.7978, allocations: 63.89 kB / 0.6846 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.845e-05/0.7979, allocations: 32.97 kB / 0.6846 GB, free: 142.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002954/0.7982, allocations: 269.7 kB / 0.6848 GB, free: 142.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7982, allocations: 0 / 0.6848 GB, free: 142.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007945/0.799, allocations: 237.5 kB / 0.6851 GB, free: 142.3 MB / 490.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.003027/0.802, allocations: 1.782 MB / 0.6868 GB, free: 141.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.8035, allocations: 0.6491 MB / 0.6874 GB, free: 141.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.8035, allocations: 3.031 kB / 0.6874 GB, free: 141.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007699/0.8043, allocations: 432.7 kB / 0.6879 GB, free: 141 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.8055, allocations: 196.4 kB / 0.688 GB, free: 140.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005405/0.8109, allocations: 3.48 MB / 0.6914 GB, free: 139.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.8112, allocations: 0.8497 MB / 0.6923 GB, free: 138.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003873/0.8116, allocations: 200.4 kB / 0.6925 GB, free: 138.3 MB / 490.7 MB Notification: Performance of SimCode: time 6.81e-07/0.8116, allocations: 0 / 0.6925 GB, free: 138.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.037/4.849, allocations: 12.14 MB / 0.7043 GB, free: 136.5 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestSweptVolume/TestSweptVolume.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches