Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_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.0008975/0.0008975, allocations: 97.72 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009498/0.0009497, allocations: 177.7 kB / 16.92 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.597/1.597, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3703/0.3703, allocations: 43.57 MB / 315 MB, free: 8.746 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005/0.0004998, allocations: 12 kB / 384.7 MB, free: 7.555 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1242, allocations: 58.86 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001769/0.126, allocations: 1.252 MB / 444.8 MB, free: 11.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007489/0.1268, allocations: 0.5153 MB / 445.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.838e-05/0.1268, allocations: 0 / 445.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.798e-05/0.1269, allocations: 3.938 kB / 445.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.209e-05/0.1269, allocations: 3.938 kB / 445.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001838/0.1271, allocations: 35.95 kB / 445.3 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.808e-05/0.1272, allocations: 83.7 kB / 445.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.1274, allocations: 15.98 kB / 445.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.1275, allocations: 35.84 kB / 445.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.717e-05/0.1276, allocations: 35.83 kB / 445.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.178e-05/0.1276, allocations: 4 kB / 445.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.489e-05/0.1276, allocations: 4 kB / 445.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.891e-05/0.1276, allocations: 19.91 kB / 445.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.037e-05/0.1277, allocations: 61.5 kB / 445.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.1279, allocations: 71.98 kB / 445.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1279, allocations: 7.984 kB / 445.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1279, allocations: 0 / 445.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1279, allocations: 0 / 445.7 MB, free: 10.42 MB / 382.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.0005902/0.1285, allocations: 379.3 kB / 446 MB, free: 10 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1285, allocations: 12.03 kB / 446.1 MB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.562e-05/0.1286, allocations: 42.73 kB / 446.1 MB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.1286, allocations: 8.844 kB / 446.1 MB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.1288, allocations: 184.1 kB / 446.3 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.1288, allocations: 8.375 kB / 446.3 MB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.684e-05/0.1288, allocations: 4.375 kB / 446.3 MB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.129, allocations: 93.77 kB / 446.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.129, allocations: 0 / 446.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.129, allocations: 7.984 kB / 446.4 MB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.1291, allocations: 4 kB / 446.4 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.1292, allocations: 47.97 kB / 446.5 MB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005156/0.1297, allocations: 336.6 kB / 446.8 MB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001735/0.1299, allocations: 90.55 kB / 446.9 MB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.656e-05/0.13, allocations: 44.84 kB / 446.9 MB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.13, allocations: 0 / 446.9 MB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.1302, allocations: 99.52 kB / 447 MB, free: 8.914 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.835e-06/0.1302, allocations: 4 kB / 447 MB, free: 8.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004297/0.1307, allocations: 194 kB / 447.2 MB, free: 8.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.1307, allocations: 59.41 kB / 447.3 MB, free: 8.645 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.1309, allocations: 117.8 kB / 447.4 MB, free: 8.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.1309, allocations: 33.69 kB / 447.4 MB, free: 8.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.131, allocations: 88.42 kB / 447.5 MB, free: 8.391 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.734e-05/0.131, allocations: 39.53 kB / 447.5 MB, free: 8.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/0.1311, allocations: 29.7 kB / 447.6 MB, free: 8.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1312, allocations: 318.8 kB / 447.9 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.299e-05/0.1313, allocations: 43.97 kB / 447.9 MB, free: 7.953 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.1314, allocations: 81.06 kB / 448 MB, free: 7.855 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.1316, allocations: 121.1 kB / 448.1 MB, free: 7.719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1316, allocations: 0 / 448.1 MB, free: 7.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002679/0.1319, allocations: 169.3 kB / 448.3 MB, free: 7.547 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1319, allocations: 4 kB / 448.3 MB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1319, allocations: 0 / 448.3 MB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1319, allocations: 4 kB / 448.3 MB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.1321, allocations: 31.86 kB / 448.3 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.1321, allocations: 4.531 kB / 448.3 MB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.838e-05/0.1321, allocations: 11.94 kB / 448.3 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.1322, allocations: 11.98 kB / 448.3 MB, free: 7.48 MB / 382.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.0001069/0.1323, allocations: 124 kB / 448.5 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.1323, allocations: 19.84 kB / 448.5 MB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.919e-05/0.1323, allocations: 8.5 kB / 448.5 MB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1323, allocations: 3.938 kB / 448.5 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.1324, allocations: 4 kB / 448.5 MB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1324, allocations: 3.984 kB / 448.5 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005128/0.1329, allocations: 446.5 kB / 448.9 MB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.1329, allocations: 3.938 kB / 448.9 MB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.057e-05/0.133, allocations: 8 kB / 449 MB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.133, allocations: 0 / 449 MB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.133, allocations: 11.98 kB / 449 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.133, allocations: 0 / 449 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.133, allocations: 4 kB / 449 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.1333, allocations: 259.4 kB / 449.2 MB, free: 6.527 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.163e-05/0.1334, allocations: 92.89 kB / 449.3 MB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.1334, allocations: 0 / 449.3 MB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.1335, allocations: 11.98 kB / 449.3 MB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.1336, allocations: 15.98 kB / 449.3 MB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.1336, allocations: 4 kB / 449.3 MB, free: 6.387 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.114e-05/0.1337, allocations: 95.2 kB / 449.4 MB, free: 6.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1337, allocations: 0 / 449.4 MB, free: 6.293 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002458/0.134, allocations: 20 kB / 449.5 MB, free: 6.273 MB / 382.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.0006318/0.1346, allocations: 0.802 MB / 450.3 MB, free: 5.441 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002316/0.1348, allocations: 111.8 kB / 450.4 MB, free: 5.332 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1348, allocations: 0 / 450.4 MB, free: 5.332 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.135, allocations: 56.22 kB / 450.4 MB, free: 5.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.1352, allocations: 12 kB / 450.4 MB, free: 5.266 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.1368, allocations: 1.661 MB / 452.1 MB, free: 3.488 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1372, allocations: 0.7003 MB / 452.8 MB, free: 2.762 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.418e-05/0.1372, allocations: 12.81 kB / 452.8 MB, free: 2.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.328e-05/0.1373, allocations: 31.42 kB / 452.8 MB, free: 2.723 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1373, allocations: 0 / 452.8 MB, free: 2.723 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01212/0.1495, allocations: 1.87 MB / 454.7 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/0.1497, allocations: 190.8 kB / 454.9 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.702/1.852, allocations: 4 kB / 454.9 MB, free: 0.6133 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches