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.001063/0.001063, allocations: 105.9 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.001157/0.001157, allocations: 216.5 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.424/1.424, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 75.91 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.126, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.004509/0.1305, allocations: 1.544 MB / 481.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.1321, allocations: 0.5454 MB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.202e-05/0.1322, allocations: 7.875 kB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.442e-05/0.1323, allocations: 7.938 kB / 482.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.1324, allocations: 19.84 kB / 482.3 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.1328, allocations: 51.88 kB / 482.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002187/0.133, allocations: 87.77 kB / 482.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.1332, allocations: 8 kB / 482.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.1334, allocations: 55.77 kB / 482.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.1335, allocations: 35.84 kB / 482.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.1335, allocations: 8 kB / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.1336, allocations: 12 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.1337, allocations: 31.89 kB / 482.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/0.1337, allocations: 35.8 kB / 482.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.1339, allocations: 83.98 kB / 482.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.134, allocations: 3.938 kB / 482.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.134, allocations: 0 / 482.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.134, allocations: 0 / 482.7 MB, free: 2.641 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.0008836/0.1349, allocations: 403.3 kB / 483.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.925e-05/0.1349, allocations: 12.03 kB / 483.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.688e-05/0.135, allocations: 38.69 kB / 483.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/0.1353, allocations: 20.83 kB / 483.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.1356, allocations: 192.2 kB / 483.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.1356, allocations: 8.375 kB / 483.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.1357, allocations: 4.375 kB / 483.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.136, allocations: 97.69 kB / 483.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.136, allocations: 0 / 483.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.1361, allocations: 4 kB / 483.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.1361, allocations: 4 kB / 483.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.1363, allocations: 43.97 kB / 483.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000842/0.1372, allocations: 324.7 kB / 483.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.1375, allocations: 98.53 kB / 483.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.1377, allocations: 52.78 kB / 483.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.1378, allocations: 4.203 kB / 483.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003684/0.1381, allocations: 102.5 kB / 484 MB, free: 1.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 3.366e-06/0.1382, allocations: 0 / 484 MB, free: 1.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006813/0.1388, allocations: 201.6 kB / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.1389, allocations: 55.41 kB / 484.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.1391, allocations: 121.8 kB / 484.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.1391, allocations: 33.7 kB / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.579e-05/0.1392, allocations: 96.33 kB / 484.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.468e-05/0.1393, allocations: 35.53 kB / 484.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.279e-05/0.1394, allocations: 37.7 kB / 484.6 MB, free: 484 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1395, allocations: 326.8 kB / 484.9 MB, free: 148 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.1397, allocations: 39.98 kB / 485 MB, free: 108 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.1399, allocations: 72.27 kB / 485 MB, free: 20 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.1402, allocations: 124.2 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.1403, allocations: 0 / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004587/0.1407, allocations: 164.7 kB / 485.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1408, allocations: 10.64 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1408, allocations: 0 / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1408, allocations: 4 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.141, allocations: 28.05 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/0.141, allocations: 3.938 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1411, allocations: 15.84 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.1412, allocations: 8 kB / 485.4 MB, free: 15.65 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.0001361/0.1413, allocations: 124.1 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.304e-05/0.1414, allocations: 11.89 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.825e-05/0.1414, allocations: 8.5 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1414, allocations: 7.938 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.1414, allocations: 8 kB / 485.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.1415, allocations: 0 / 485.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000803/0.1423, allocations: 450.4 kB / 486 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1423, allocations: 7.875 kB / 486 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.295e-05/0.1424, allocations: 8 kB / 486 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1424, allocations: 0 / 486 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.1424, allocations: 7.984 kB / 486 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1424, allocations: 0 / 486 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1424, allocations: 7.938 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.1429, allocations: 251.4 kB / 486.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.381e-05/0.143, allocations: 96.88 kB / 486.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.1431, allocations: 0 / 486.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.1433, allocations: 7.984 kB / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.1433, allocations: 12 kB / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.1434, allocations: 11.98 kB / 486.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.905e-05/0.1435, allocations: 95.64 kB / 486.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1435, allocations: 0 / 486.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004627/0.1439, allocations: 20 kB / 486.5 MB, free: 14.44 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.0008822/0.1448, allocations: 0.7951 MB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004338/0.1453, allocations: 123.3 kB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1453, allocations: 0 / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.1455, allocations: 51.97 kB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.146, allocations: 8 kB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.1486, allocations: 1.641 MB / 489.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.1489, allocations: 0.6924 MB / 489.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.295e-05/0.149, allocations: 8.891 kB / 489.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.762e-05/0.1491, allocations: 27.42 kB / 489.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1491, allocations: 0 / 489.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.1717, allocations: 2.185 MB / 492 MB, free: 8.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.599/8.771, allocations: 13.41 kB / 492 MB, free: 8.789 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