Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",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.001748/0.001748, allocations: 101.3 kB / 16.5 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001886/0.001886, allocations: 194.4 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.001581, allocations: 43.97 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1236, allocations: 49.45 MB / 349.5 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.005022/0.1286, allocations: 1.956 MB / 351.5 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002833/0.1315, allocations: 1.126 MB / 352.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.1319, allocations: 11.94 kB / 352.6 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005485/0.1326, allocations: 59.8 kB / 352.7 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004149/0.133, allocations: 79.72 kB / 352.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.1341, allocations: 232.7 kB / 353 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004174/0.1345, allocations: 171.5 kB / 353.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.1347, allocations: 25.55 kB / 353.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.1349, allocations: 63.72 kB / 353.2 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.1351, allocations: 87.59 kB / 353.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.289e-05/0.1351, allocations: 4 kB / 353.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.1354, allocations: 47.97 kB / 353.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.1355, allocations: 43.84 kB / 353.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.1356, allocations: 87.34 kB / 353.5 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005662/0.1362, allocations: 235.5 kB / 353.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.1362, allocations: 4 kB / 353.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1362, allocations: 0 / 353.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1363, allocations: 0 / 353.7 MB, free: 0.5156 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001087/0.1373, allocations: 0.5274 MB / 354.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.809e-05/0.1374, allocations: 12.03 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.03e-05/0.1375, allocations: 38.73 kB / 354.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.172e-05/0.1376, allocations: 24.66 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.1381, allocations: 295.5 kB / 354.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.1381, allocations: 4.375 kB / 354.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.1381, allocations: 11.94 kB / 354.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004034/0.1385, allocations: 184.3 kB / 354.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1386, allocations: 3.938 kB / 354.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.1386, allocations: 4 kB / 354.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.1386, allocations: 0 / 354.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.1387, allocations: 43.91 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00068/0.1394, allocations: 466.6 kB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.1398, allocations: 150.5 kB / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.1399, allocations: 55.42 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.14, allocations: 3.984 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000355/0.1403, allocations: 105.1 kB / 355.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.824e-06/0.1403, allocations: 0 / 355.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005046/0.1408, allocations: 161.3 kB / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.141, allocations: 191.9 kB / 356 MB, free: 13.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004707/0.1415, allocations: 338.8 kB / 356.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.1415, allocations: 33.7 kB / 356.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.1417, allocations: 128.4 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.801e-05/0.1417, allocations: 19.75 kB / 356.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.927e-05/0.1418, allocations: 33.7 kB / 356.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.142, allocations: 334.8 kB / 356.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.596e-05/0.142, allocations: 23.98 kB / 356.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.1422, allocations: 99.7 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000198/0.1424, allocations: 97.02 kB / 357 MB, free: 12.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1424, allocations: 0 / 357 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003059/0.1427, allocations: 137.3 kB / 357.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.1428, allocations: 4 kB / 357.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1428, allocations: 0 / 357.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.1428, allocations: 7.984 kB / 357.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.143, allocations: 20 kB / 357.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.143, allocations: 7.938 kB / 357.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.1431, allocations: 19.98 kB / 357.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.1431, allocations: 4 kB / 357.2 MB, free: 12.59 MB / 302.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: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001886/0.1433, allocations: 150.1 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.1434, allocations: 69.44 kB / 357.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.342e-05/0.1435, allocations: 29.7 kB / 357.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.1435, allocations: 4 kB / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.1435, allocations: 0 / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1436, allocations: 7.938 kB / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002986/0.1439, allocations: 253.5 kB / 357.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1439, allocations: 0 / 357.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.43e-05/0.144, allocations: 15.98 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.144, allocations: 4 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.144, allocations: 0 / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.796e-05/0.144, allocations: 7.938 kB / 357.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.144, allocations: 3.938 kB / 357.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003377/0.1444, allocations: 183.3 kB / 358 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.1445, allocations: 116.9 kB / 358.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.547e-05/0.1446, allocations: 0 / 358.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.267e-05/0.1446, allocations: 8 kB / 358.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.497e-05/0.1447, allocations: 11.92 kB / 358.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.1447, allocations: 4 kB / 358.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002449/0.145, allocations: 245.9 kB / 358.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.145, allocations: 4 kB / 358.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002975/0.1453, allocations: 35.91 kB / 358.4 MB, free: 11.35 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001469/0.1468, allocations: 1.051 MB / 359.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002684/0.147, allocations: 91.77 kB / 359.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1471, allocations: 0 / 359.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.1472, allocations: 35.98 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004635/0.1476, allocations: 72.75 kB / 359.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002959/0.1506, allocations: 2.298 MB / 361.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.151, allocations: 0.744 MB / 362.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.1511, allocations: 25.53 kB / 362.7 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.1512, allocations: 59.36 kB / 362.7 MB, free: 6.945 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1512, allocations: 4 kB / 362.7 MB, free: 6.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.1683, allocations: 5.066 MB / 367.8 MB, free: 2.012 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/0.1686, allocations: 252.2 kB / 368.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.227/2.396, allocations: 0 / 368.1 MB, free: 1.758 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches