Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2159/0.2159, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 78.31 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1192, allocations: 62.44 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002591/0.1218, allocations: 1.545 MB / 481.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008806/0.1227, allocations: 0.5493 MB / 482.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.368e-05/0.1228, allocations: 7.938 kB / 482.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.878e-05/0.1229, allocations: 7.875 kB / 482.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.407e-05/0.1229, allocations: 11.88 kB / 482.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.1232, allocations: 51.81 kB / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000134/0.1233, allocations: 95.75 kB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.1234, allocations: 7.984 kB / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.1236, allocations: 43.86 kB / 482.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.073e-05/0.1237, allocations: 51.75 kB / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/0.1237, allocations: 8 kB / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.799e-05/0.1238, allocations: 8 kB / 482.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.741e-05/0.1238, allocations: 23.92 kB / 482.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.595e-05/0.1238, allocations: 43.78 kB / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.124, allocations: 79.98 kB / 482.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.124, allocations: 0 / 482.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.124, allocations: 0 / 482.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.124, allocations: 0 / 482.6 MB, free: 2.637 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.0006207/0.1246, allocations: 403.3 kB / 483 MB, free: 2.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1247, allocations: 12.03 kB / 483 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.76e-05/0.1247, allocations: 38.73 kB / 483.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.1249, allocations: 20.83 kB / 483.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.1251, allocations: 184.2 kB / 483.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.1251, allocations: 16.34 kB / 483.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.1251, allocations: 12.25 kB / 483.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.1253, allocations: 89.77 kB / 483.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.1253, allocations: 0 / 483.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.1254, allocations: 8 kB / 483.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1254, allocations: 4 kB / 483.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.1255, allocations: 43.97 kB / 483.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000487/0.126, allocations: 328.7 kB / 483.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.1262, allocations: 102.4 kB / 483.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.881e-05/0.1263, allocations: 56.83 kB / 483.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.1264, allocations: 224 / 483.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.1266, allocations: 99.3 kB / 484 MB, free: 1.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.1266, allocations: 0 / 484 MB, free: 1.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004424/0.127, allocations: 201.1 kB / 484.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.1271, allocations: 63.39 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.242e-05/0.1272, allocations: 121.8 kB / 484.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.1272, allocations: 25.7 kB / 484.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.023e-05/0.1272, allocations: 100.3 kB / 484.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.727e-05/0.1273, allocations: 35.55 kB / 484.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.239e-05/0.1274, allocations: 33.7 kB / 484.6 MB, free: 472 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.73e-05/0.1275, allocations: 330.8 kB / 484.9 MB, free: 132 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.1276, allocations: 39.97 kB / 485 MB, free: 92 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.1277, allocations: 79.27 kB / 485 MB, free: 0 / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/0.1279, allocations: 120.2 kB / 485.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1279, allocations: 0 / 485.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002711/0.1282, allocations: 161.4 kB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.1282, allocations: 6.5 kB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1282, allocations: 0 / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1283, allocations: 4 kB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.1284, allocations: 31.98 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1284, allocations: 4 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.369e-05/0.1285, allocations: 15.84 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.1285, allocations: 11.98 kB / 485.4 MB, free: 15.63 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,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,$PRE.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 9.3e-05/0.1286, allocations: 124 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.1286, allocations: 7.906 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.957e-05/0.1286, allocations: 12.5 kB / 485.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.1286, allocations: 7.938 kB / 485.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1287, allocations: 0 / 485.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1287, allocations: 7.984 kB / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/0.1292, allocations: 438.5 kB / 486 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1292, allocations: 7.938 kB / 486 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.561e-05/0.1293, allocations: 15.86 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1293, allocations: 0 / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.1293, allocations: 11.94 kB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.1293, allocations: 0 / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1293, allocations: 0 / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003145/0.1296, allocations: 258.3 kB / 486.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.049e-05/0.1297, allocations: 92.89 kB / 486.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.1297, allocations: 0 / 486.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.1298, allocations: 11.98 kB / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.1299, allocations: 15.98 kB / 486.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.1299, allocations: 4 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.04e-05/0.13, allocations: 95.27 kB / 486.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.13, allocations: 0 / 486.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002508/0.1302, allocations: 20 kB / 486.5 MB, free: 14.43 MB / 366.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.0006199/0.1308, allocations: 0.7951 MB / 487.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00027/0.1311, allocations: 123.8 kB / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1311, allocations: 0 / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.1313, allocations: 55.3 kB / 487.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.1315, allocations: 15.98 kB / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.1333, allocations: 1.626 MB / 489.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.1336, allocations: 0.6924 MB / 489.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.282e-05/0.1336, allocations: 12.88 kB / 489.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.491e-05/0.1337, allocations: 27.42 kB / 489.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1337, allocations: 3.938 kB / 489.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.1507, allocations: 2.19 MB / 492 MB, free: 8.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.344/7.494, allocations: 11.02 kB / 492 MB, free: 8.77 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches