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.001594/0.001594, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001832/0.001832, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2241/0.2241, allocations: 46.1 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002234/0.002234, allocations: 73.39 kB / 417.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1152, allocations: 62.44 MB / 479.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00333/0.1185, allocations: 1.606 MB / 481.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.1197, allocations: 0.5493 MB / 481.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.215e-05/0.1198, allocations: 4 kB / 481.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.751e-05/0.1198, allocations: 3.938 kB / 481.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.12, allocations: 11.92 kB / 481.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002999/0.1203, allocations: 39.89 kB / 481.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.1205, allocations: 91.75 kB / 481.9 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.1206, allocations: 12 kB / 481.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.1209, allocations: 47.83 kB / 481.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.774e-05/0.121, allocations: 43.84 kB / 482 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.121, allocations: 8 kB / 482 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.727e-05/0.1211, allocations: 15.94 kB / 482 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.196e-05/0.1211, allocations: 19.91 kB / 482 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.516e-05/0.1212, allocations: 43.78 kB / 482.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.1214, allocations: 83.98 kB / 482.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1214, allocations: 0 / 482.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1214, allocations: 0 / 482.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.1214, allocations: 4 kB / 482.2 MB, free: 2.953 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.0006928/0.1221, allocations: 399.3 kB / 482.6 MB, free: 2.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1222, allocations: 8.031 kB / 482.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.156e-05/0.1222, allocations: 34.75 kB / 482.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.1224, allocations: 20.83 kB / 482.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.1226, allocations: 188.2 kB / 482.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.1226, allocations: 4.375 kB / 482.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.1226, allocations: 8.375 kB / 482.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/0.1229, allocations: 101.7 kB / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.1229, allocations: 0 / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1229, allocations: 4 kB / 482.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1229, allocations: 0 / 482.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000141/0.1231, allocations: 51.97 kB / 483 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005474/0.1236, allocations: 328.7 kB / 483.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.1238, allocations: 106.4 kB / 483.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.954e-05/0.1239, allocations: 41.06 kB / 483.4 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.124, allocations: 7.938 kB / 483.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.1242, allocations: 99.36 kB / 483.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.934e-06/0.1243, allocations: 4 kB / 483.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005085/0.1248, allocations: 205 kB / 483.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/0.1248, allocations: 59.41 kB / 483.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.125, allocations: 121.8 kB / 483.9 MB, free: 1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.125, allocations: 33.7 kB / 483.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.1251, allocations: 92.33 kB / 484 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.37e-05/0.1251, allocations: 39.53 kB / 484.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.158e-05/0.1252, allocations: 41.7 kB / 484.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1254, allocations: 326.8 kB / 484.4 MB, free: 460 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.977e-05/0.1255, allocations: 31.98 kB / 484.5 MB, free: 428 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.1256, allocations: 79.27 kB / 484.5 MB, free: 336 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.1258, allocations: 116.2 kB / 484.7 MB, free: 204 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1258, allocations: 4 kB / 484.7 MB, free: 200 kB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003164/0.1262, allocations: 153.4 kB / 484.8 MB, free: 40 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.1262, allocations: 12.11 kB / 484.8 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.1262, allocations: 7.984 kB / 484.8 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1262, allocations: 4 kB / 484.8 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.1264, allocations: 27.97 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.423e-06/0.1264, allocations: 4 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.21e-05/0.1265, allocations: 11.84 kB / 484.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.1265, allocations: 8 kB / 484.9 MB, free: 15.96 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 0.0001287/0.1266, allocations: 124.1 kB / 485 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.1267, allocations: 15.89 kB / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.497e-05/0.1267, allocations: 12.5 kB / 485 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1267, allocations: 7.875 kB / 485 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1267, allocations: 8 kB / 485.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1267, allocations: 0 / 485.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006211/0.1274, allocations: 442.3 kB / 485.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1274, allocations: 3.938 kB / 485.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.473e-05/0.1274, allocations: 11.94 kB / 485.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1274, allocations: 4 kB / 485.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.1275, allocations: 7.984 kB / 485.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.1275, allocations: 4 kB / 485.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1275, allocations: 0 / 485.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003607/0.1279, allocations: 254.7 kB / 485.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.135e-05/0.1279, allocations: 88.89 kB / 485.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.128, allocations: 7.984 kB / 485.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.1281, allocations: 15.98 kB / 485.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.1281, allocations: 7.938 kB / 485.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.1282, allocations: 7.984 kB / 485.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.983e-05/0.1282, allocations: 99.27 kB / 486 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1282, allocations: 0 / 486 MB, free: 14.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000266/0.1285, allocations: 16 kB / 486 MB, free: 14.75 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.0006763/0.1292, allocations: 0.7995 MB / 486.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002994/0.1295, allocations: 115.8 kB / 486.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1295, allocations: 0 / 486.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.1296, allocations: 51.97 kB / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.1299, allocations: 8.25 kB / 487 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.1318, allocations: 1.664 MB / 488.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.1321, allocations: 0.6924 MB / 489.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.908e-05/0.1321, allocations: 12.89 kB / 489.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.412e-05/0.1322, allocations: 31.42 kB / 489.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1322, allocations: 3.938 kB / 489.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01531/0.1475, allocations: 2.078 MB / 491.5 MB, free: 9.238 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000247/0.1478, allocations: 187.8 kB / 491.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/1.953, allocations: 0 / 491.6 MB, free: 8.98 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches