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.001017/0.001017, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2028/0.2028, allocations: 46.19 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002584/0.0002585, allocations: 12.27 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.112, allocations: 63.55 MB / 483.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002464/0.1145, allocations: 1.267 MB / 484.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1157, allocations: 0.53 MB / 485 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.039e-05/0.1158, allocations: 11.94 kB / 485 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.219e-05/0.1159, allocations: 3.938 kB / 485 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.898e-05/0.116, allocations: 15.84 kB / 485 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.1162, allocations: 35.97 kB / 485 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.1164, allocations: 83.77 kB / 485.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.1165, allocations: 11.98 kB / 485.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.1167, allocations: 43.78 kB / 485.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.653e-05/0.1168, allocations: 39.83 kB / 485.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.043e-05/0.1168, allocations: 8 kB / 485.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.1169, allocations: 11.94 kB / 485.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.433e-05/0.1169, allocations: 15.92 kB / 485.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.577e-05/0.117, allocations: 65.48 kB / 485.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.1172, allocations: 75.97 kB / 485.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1172, allocations: 0 / 485.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1172, allocations: 0 / 485.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1172, allocations: 4 kB / 485.4 MB, free: 1.844 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.0008241/0.118, allocations: 391.3 kB / 485.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.1181, allocations: 12.88 kB / 485.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.275e-05/0.1181, allocations: 42.67 kB / 485.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.1183, allocations: 20.83 kB / 485.8 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.1185, allocations: 192.2 kB / 486 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.1185, allocations: 8.375 kB / 486 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.1186, allocations: 12.38 kB / 486 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.1188, allocations: 93.77 kB / 486.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.1188, allocations: 0 / 486.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.1188, allocations: 4 kB / 486.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1188, allocations: 3.984 kB / 486.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.119, allocations: 59.91 kB / 486.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005363/0.1195, allocations: 340.6 kB / 486.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.1198, allocations: 94.55 kB / 486.6 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1199, allocations: 52.83 kB / 486.7 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.1199, allocations: 224 / 486.7 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002203/0.1201, allocations: 110.7 kB / 486.8 MB, free: 272 kB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.203e-06/0.1201, allocations: 4 kB / 486.8 MB, free: 268 kB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004637/0.1206, allocations: 197.7 kB / 487 MB, free: 64 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.1207, allocations: 63.47 kB / 487.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.146e-05/0.1208, allocations: 117.8 kB / 487.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/0.1209, allocations: 29.7 kB / 487.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.986e-05/0.1209, allocations: 96.41 kB / 487.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.101e-05/0.121, allocations: 39.45 kB / 487.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.602e-05/0.121, allocations: 21.72 kB / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1211, allocations: 326.8 kB / 487.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.1212, allocations: 43.91 kB / 487.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.1214, allocations: 84.27 kB / 487.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002141/0.1216, allocations: 120.2 kB / 487.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.1216, allocations: 3.984 kB / 487.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003199/0.1219, allocations: 169.1 kB / 488.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.1219, allocations: 4 kB / 488.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.122, allocations: 4 kB / 488.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.122, allocations: 128 / 488.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.1221, allocations: 27.98 kB / 488.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.1221, allocations: 7.875 kB / 488.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.896e-05/0.1222, allocations: 19.84 kB / 488.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.1222, allocations: 4 kB / 488.1 MB, free: 14.82 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.0001019/0.1223, allocations: 132 kB / 488.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.1223, allocations: 7.906 kB / 488.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.074e-05/0.1224, allocations: 16.5 kB / 488.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1224, allocations: 4 kB / 488.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.1224, allocations: 3.938 kB / 488.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1224, allocations: 3.984 kB / 488.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000574/0.123, allocations: 446.3 kB / 488.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.123, allocations: 0 / 488.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.632e-05/0.1231, allocations: 19.86 kB / 488.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1231, allocations: 4 kB / 488.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1231, allocations: 4 kB / 488.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1231, allocations: 0 / 488.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1231, allocations: 0 / 488.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003862/0.1235, allocations: 267.3 kB / 489 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.763e-05/0.1236, allocations: 100.9 kB / 489.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.1236, allocations: 0 / 489.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.1237, allocations: 19.98 kB / 489.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.1238, allocations: 7.984 kB / 489.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.1238, allocations: 4 kB / 489.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.349e-05/0.1239, allocations: 99.64 kB / 489.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1239, allocations: 0 / 489.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002492/0.1241, allocations: 20 kB / 489.3 MB, free: 13.59 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.0006107/0.1247, allocations: 0.8065 MB / 490.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002597/0.125, allocations: 111.9 kB / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.125, allocations: 4 kB / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.1251, allocations: 59.16 kB / 490.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.1254, allocations: 15.98 kB / 490.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001908/0.1273, allocations: 1.686 MB / 492 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.1276, allocations: 0.6965 MB / 492.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.441e-05/0.1277, allocations: 12.88 kB / 492.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.457e-05/0.1277, allocations: 27.38 kB / 492.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1277, allocations: 0 / 492.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01216/0.1399, allocations: 1.926 MB / 494.6 MB, free: 8.195 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.1401, allocations: 191 kB / 494.8 MB, free: 7.934 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/1.804, allocations: 0 / 494.8 MB, free: 7.934 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