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.001267/0.001267, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.001335/0.001335, allocations: 194 kB / 18.12 MB, free: 5.383 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.393/1.393, allocations: 222.9 MB / 241.8 MB, free: 15.46 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.2234/0.2234, allocations: 44.17 MB / 336.1 MB, free: 3.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.001319, allocations: 63.62 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1298, allocations: 60.83 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003077/0.1329, allocations: 1.575 MB / 470.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000841/0.1338, allocations: 490.8 kB / 470.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.048e-05/0.1338, allocations: 0 / 470.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.763e-05/0.1339, allocations: 3.938 kB / 470.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.338e-05/0.134, allocations: 11.92 kB / 470.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002071/0.1342, allocations: 31.91 kB / 470.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.1343, allocations: 91.7 kB / 470.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.941e-05/0.1344, allocations: 12 kB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1346, allocations: 35.83 kB / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.1347, allocations: 35.84 kB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.1347, allocations: 4 kB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.608e-05/0.1348, allocations: 4 kB / 470.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.835e-05/0.1348, allocations: 15.97 kB / 470.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.1349, allocations: 39.8 kB / 471 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.135, allocations: 71.98 kB / 471 MB, free: 12.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.135, allocations: 4 kB / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.135, allocations: 0 / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.135, allocations: 3.938 kB / 471 MB, free: 12.32 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.0006683/0.1357, allocations: 395.3 kB / 471.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1357, allocations: 8.031 kB / 471.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.327e-05/0.1358, allocations: 42.75 kB / 471.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.1358, allocations: 12.84 kB / 471.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.136, allocations: 176.2 kB / 471.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.136, allocations: 8.375 kB / 471.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.136, allocations: 4.375 kB / 471.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.1362, allocations: 93.7 kB / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1362, allocations: 0 / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.1363, allocations: 0 / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.1363, allocations: 4 kB / 471.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.1364, allocations: 43.97 kB / 471.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005354/0.1369, allocations: 332.7 kB / 472.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.1371, allocations: 90.47 kB / 472.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.733e-05/0.1372, allocations: 48.78 kB / 472.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.1373, allocations: 7.938 kB / 472.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.1375, allocations: 99.36 kB / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.1375, allocations: 0 / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004371/0.1379, allocations: 180.3 kB / 472.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.138, allocations: 67.39 kB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.384e-05/0.1381, allocations: 117.8 kB / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.1381, allocations: 29.7 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.417e-05/0.1382, allocations: 96.42 kB / 472.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.1383, allocations: 35.53 kB / 472.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.505e-05/0.1383, allocations: 37.7 kB / 472.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1385, allocations: 326.8 kB / 473.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.952e-05/0.1385, allocations: 35.98 kB / 473.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.1387, allocations: 75.19 kB / 473.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.1389, allocations: 133 kB / 473.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1389, allocations: 0 / 473.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000278/0.1392, allocations: 161.5 kB / 473.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1392, allocations: 8 kB / 473.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.1392, allocations: 0 / 473.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1392, allocations: 7.938 kB / 473.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.1393, allocations: 27.92 kB / 473.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.1394, allocations: 0 / 473.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.093e-05/0.1394, allocations: 7.938 kB / 473.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.1394, allocations: 12.16 kB / 473.7 MB, free: 9.383 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.0001096/0.1396, allocations: 132 kB / 473.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.1396, allocations: 11.89 kB / 473.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.1396, allocations: 8.5 kB / 473.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1396, allocations: 7.938 kB / 473.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1396, allocations: 0 / 473.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1397, allocations: 0 / 473.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005385/0.1402, allocations: 438.3 kB / 474.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.1402, allocations: 8 kB / 474.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-05/0.1403, allocations: 7.984 kB / 474.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1403, allocations: 4.375 kB / 474.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1403, allocations: 8 kB / 474.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1403, allocations: 0 / 474.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1403, allocations: 0 / 474.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.1406, allocations: 263.2 kB / 474.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.231e-05/0.1407, allocations: 92.95 kB / 474.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/0.1407, allocations: 3.984 kB / 474.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.1408, allocations: 8 kB / 474.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.1409, allocations: 11.98 kB / 474.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.1409, allocations: 7.984 kB / 474.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.155e-05/0.141, allocations: 87.28 kB / 474.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.141, allocations: 0 / 474.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002536/0.1412, allocations: 23.98 kB / 474.8 MB, free: 8.18 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.0006332/0.1419, allocations: 0.8008 MB / 475.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002525/0.1421, allocations: 103.9 kB / 475.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1422, allocations: 0 / 475.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.1423, allocations: 52.23 kB / 475.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.1425, allocations: 15.98 kB / 475.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.1443, allocations: 1.643 MB / 477.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.1445, allocations: 0.6965 MB / 478.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.676e-05/0.1446, allocations: 12.88 kB / 478.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.417e-05/0.1447, allocations: 23.44 kB / 478.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1447, allocations: 0 / 478.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1544/0.299, allocations: 1.934 MB / 480.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/0.2993, allocations: 185.8 kB / 480.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/2.141, allocations: 7.938 kB / 480.3 MB, free: 2.562 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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