Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",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.00105/0.00105, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001003/0.001003, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.372/1.372, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2341/0.2341, allocations: 44.19 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 62.77 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1441, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002799/0.147, allocations: 1.53 MB / 470.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008326/0.1479, allocations: 482.8 kB / 471.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.773e-05/0.1479, allocations: 4 kB / 471.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.475e-05/0.148, allocations: 7.922 kB / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.411e-05/0.1481, allocations: 11.86 kB / 471.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.1483, allocations: 51.88 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000118/0.1485, allocations: 79.72 kB / 471.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1486, allocations: 15.98 kB / 471.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.1487, allocations: 43.78 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.454e-05/0.1488, allocations: 35.84 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.1489, allocations: 4 kB / 471.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.701e-05/0.1489, allocations: 8 kB / 471.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.265e-05/0.1489, allocations: 19.97 kB / 471.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.084e-05/0.149, allocations: 43.78 kB / 471.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.1491, allocations: 76 kB / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1491, allocations: 0 / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1492, allocations: 0 / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1492, allocations: 0 / 471.7 MB, free: 11.87 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007/0.1499, allocations: 395.3 kB / 472.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1499, allocations: 8.031 kB / 472.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.356e-05/0.15, allocations: 42.73 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.572e-05/0.15, allocations: 16.78 kB / 472.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.1502, allocations: 172.2 kB / 472.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.1502, allocations: 8.375 kB / 472.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.1502, allocations: 8.359 kB / 472.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.1504, allocations: 89.78 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.1504, allocations: 0 / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.1504, allocations: 3.984 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1505, allocations: 4 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.1506, allocations: 43.92 kB / 472.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005319/0.1511, allocations: 328.7 kB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/0.1513, allocations: 90.48 kB / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.239e-05/0.1514, allocations: 48.83 kB / 473 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.1515, allocations: 0 / 473 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.1517, allocations: 107.2 kB / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.1517, allocations: 0 / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000425/0.1522, allocations: 181.7 kB / 473.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.1522, allocations: 59.41 kB / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.186e-05/0.1523, allocations: 117.8 kB / 473.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.1524, allocations: 29.7 kB / 473.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.312e-05/0.1524, allocations: 96.41 kB / 473.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/0.1525, allocations: 31.55 kB / 473.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-05/0.1525, allocations: 37.66 kB / 473.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1526, allocations: 326.8 kB / 473.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.318e-05/0.1527, allocations: 39.97 kB / 474 MB, free: 9.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.1529, allocations: 77.12 kB / 474.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1531, allocations: 117.1 kB / 474.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1531, allocations: 0 / 474.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002641/0.1533, allocations: 165.5 kB / 474.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1534, allocations: 8 kB / 474.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1534, allocations: 0 / 474.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1534, allocations: 7.938 kB / 474.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1535, allocations: 23.92 kB / 474.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.1535, allocations: 0 / 474.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.679e-05/0.1536, allocations: 11.94 kB / 474.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.1536, allocations: 16.14 kB / 474.4 MB, free: 8.938 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001148/0.1537, allocations: 132 kB / 474.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.773e-05/0.1538, allocations: 7.906 kB / 474.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.086e-05/0.1538, allocations: 8.5 kB / 474.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1538, allocations: 7.938 kB / 474.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1538, allocations: 4 kB / 474.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1538, allocations: 0 / 474.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005319/0.1544, allocations: 449.1 kB / 475 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1544, allocations: 4 kB / 475 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.191e-05/0.1545, allocations: 4 kB / 475 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1545, allocations: 0 / 475 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.1545, allocations: 8.375 kB / 475 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/0.1545, allocations: 7.969 kB / 475 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1545, allocations: 0 / 475 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.1548, allocations: 255.2 kB / 475.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.1549, allocations: 100.9 kB / 475.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.1549, allocations: 0 / 475.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.1551, allocations: 15.98 kB / 475.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/0.1551, allocations: 7.984 kB / 475.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.1551, allocations: 4 kB / 475.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.369e-05/0.1552, allocations: 91.27 kB / 475.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1552, allocations: 0 / 475.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.1555, allocations: 20 kB / 475.5 MB, free: 7.73 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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0006482/0.1561, allocations: 0.7873 MB / 476.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002628/0.1564, allocations: 110.8 kB / 476.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1564, allocations: 0 / 476.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.1565, allocations: 60.22 kB / 476.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.1568, allocations: 8 kB / 476.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.1586, allocations: 1.636 MB / 478.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.1589, allocations: 0.6963 MB / 478.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.485e-05/0.1589, allocations: 8.875 kB / 478.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.035e-05/0.159, allocations: 31.42 kB / 478.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.159, allocations: 0 / 478.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.1797, allocations: 2.122 MB / 481 MB, free: 2.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.385/7.565, allocations: 1.031 kB / 481 MB, free: 2.172 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches