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.001357/0.001357, allocations: 108.4 kB / 17.06 MB, free: 5.973 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.001319/0.00132, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.41/1.41, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 47.94 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2465, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003696/0.2503, allocations: 1.901 MB / 402.1 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002173/0.2525, allocations: 1.169 MB / 403.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.2526, allocations: 7.938 kB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003065/0.253, allocations: 59.67 kB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003206/0.2533, allocations: 87.66 kB / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007706/0.2541, allocations: 264.3 kB / 403.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002822/0.2544, allocations: 175.5 kB / 403.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.2545, allocations: 33.55 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.2547, allocations: 75.69 kB / 404 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.2548, allocations: 79.62 kB / 404.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.2548, allocations: 8 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.255, allocations: 71.94 kB / 404.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.641e-05/0.2551, allocations: 47.84 kB / 404.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.2552, allocations: 83.36 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003892/0.2556, allocations: 246 kB / 404.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2556, allocations: 0 / 404.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2556, allocations: 0 / 404.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.2557, allocations: 0 / 404.5 MB, free: 4.531 MB / 318.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.0008041/0.2565, allocations: 0.5504 MB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.2565, allocations: 8.031 kB / 405.1 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.57e-05/0.2566, allocations: 42.73 kB / 405.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.362e-05/0.2566, allocations: 28.73 kB / 405.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000399/0.257, allocations: 287.9 kB / 405.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.2571, allocations: 4.375 kB / 405.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.298e-05/0.2571, allocations: 15.94 kB / 405.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.2575, allocations: 168.4 kB / 405.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.2575, allocations: 0 / 405.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.2576, allocations: 12 kB / 405.6 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.2576, allocations: 3.938 kB / 405.6 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.2577, allocations: 39.92 kB / 405.7 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006066/0.2583, allocations: 474.5 kB / 406.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.2586, allocations: 150.5 kB / 406.3 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.2588, allocations: 59.42 kB / 406.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.2588, allocations: 0 / 406.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.259, allocations: 97.03 kB / 406.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.259, allocations: 0 / 406.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004347/0.2595, allocations: 177.4 kB / 406.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.2596, allocations: 187.9 kB / 406.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/0.26, allocations: 338.6 kB / 407.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.26, allocations: 29.7 kB / 407.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.2601, allocations: 124.4 kB / 407.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.2602, allocations: 19.89 kB / 407.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.452e-05/0.2602, allocations: 38.05 kB / 407.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.2604, allocations: 338.8 kB / 407.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.2605, allocations: 27.98 kB / 407.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.2607, allocations: 95.64 kB / 407.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.2609, allocations: 97.08 kB / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2609, allocations: 0 / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002633/0.2611, allocations: 141.4 kB / 408 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.2612, allocations: 8 kB / 408 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.2612, allocations: 0 / 408 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.2612, allocations: 4 kB / 408 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.2613, allocations: 23.92 kB / 408 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.2613, allocations: 4 kB / 408 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.304e-05/0.2614, allocations: 15.88 kB / 408.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.2614, allocations: 4 kB / 408.1 MB, free: 0.582 MB / 318.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.000158/0.2616, allocations: 162.5 kB / 408.2 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-05/0.2617, allocations: 73.44 kB / 408.3 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.002e-05/0.2618, allocations: 25.7 kB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2618, allocations: 4 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2618, allocations: 0 / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.2618, allocations: 11.92 kB / 408.3 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.2621, allocations: 245.9 kB / 408.6 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2621, allocations: 0 / 408.6 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.006e-05/0.2622, allocations: 19.98 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.2622, allocations: 8.062 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.2622, allocations: 0 / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.391e-06/0.2622, allocations: 7.938 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2622, allocations: 0 / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002988/0.2625, allocations: 179.4 kB / 408.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.2626, allocations: 124.9 kB / 408.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.2627, allocations: 4 kB / 408.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.162e-05/0.2628, allocations: 15.92 kB / 408.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.912e-05/0.2628, allocations: 15.91 kB / 408.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.2628, allocations: 7.984 kB / 408.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003279/0.2632, allocations: 241.9 kB / 409.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2632, allocations: 0 / 409.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002732/0.2635, allocations: 35.94 kB / 409.2 MB, free: 15.31 MB / 334.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.001974/0.2654, allocations: 1.032 MB / 410.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002454/0.2657, allocations: 87.89 kB / 410.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.2657, allocations: 4 kB / 410.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.948e-05/0.2658, allocations: 35.92 kB / 410.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/0.2662, allocations: 77.92 kB / 410.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.269, allocations: 2.259 MB / 412.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.2694, allocations: 0.7437 MB / 413.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.793e-05/0.2695, allocations: 33.52 kB / 413.5 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.2697, allocations: 55.42 kB / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2697, allocations: 3.938 kB / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.2968, allocations: 5.406 MB / 418.9 MB, free: 5.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.247/8.544, allocations: 6.672 kB / 419 MB, free: 5.672 MB / 334.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