Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009635/0.0009637, allocations: 173.4 kB / 16.77 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.239/1.239, allocations: 205.4 MB / 222.9 MB, free: 8.922 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007239/0.0007239, allocations: 86.34 kB / 271.3 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05863/0.05863, allocations: 12.19 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003664, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06353/0.06391, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.001669/0.0656, allocations: 1.571 MB / 444.1 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.06675, allocations: 0.937 MB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.06689, allocations: 4 kB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004657/0.06736, allocations: 143.6 kB / 445.1 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002155/0.06759, allocations: 91.7 kB / 445.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000414/0.06801, allocations: 159.6 kB / 445.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.0682, allocations: 175.4 kB / 445.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.06831, allocations: 45.52 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.06842, allocations: 59.72 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.485e-05/0.06851, allocations: 75.61 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.06854, allocations: 0 / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.06865, allocations: 39.98 kB / 445.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.999e-05/0.0687, allocations: 43.83 kB / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.482e-05/0.06877, allocations: 81.31 kB / 445.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.06894, allocations: 144 kB / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.06895, allocations: 0 / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.06895, allocations: 0 / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.06896, allocations: 7.938 kB / 446 MB, free: 12.97 MB / 298.7 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.0005398/0.06951, allocations: 0.4885 MB / 446.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.06955, allocations: 8.031 kB / 446.5 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.84e-05/0.06959, allocations: 42.73 kB / 446.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.918e-05/0.06964, allocations: 20.66 kB / 446.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002357/0.06988, allocations: 266.7 kB / 446.9 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.0699, allocations: 4.375 kB / 446.9 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.06992, allocations: 11.94 kB / 446.9 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002704/0.0702, allocations: 171.5 kB / 447.1 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.07022, allocations: 7.938 kB / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.07023, allocations: 0 / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.07024, allocations: 0 / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.764e-05/0.07034, allocations: 39.92 kB / 447.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003807/0.07073, allocations: 458.5 kB / 447.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001762/0.07091, allocations: 134.5 kB / 447.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.06e-05/0.07099, allocations: 51.42 kB / 447.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.07103, allocations: 11.94 kB / 447.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001275/0.07116, allocations: 93.09 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.07117, allocations: 0 / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002953/0.07147, allocations: 161.6 kB / 448 MB, free: 10.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.07152, allocations: 162.2 kB / 448.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.07171, allocations: 260.9 kB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.07173, allocations: 33.7 kB / 448.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.07178, allocations: 120.3 kB / 448.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.0718, allocations: 19.8 kB / 448.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-06/0.07181, allocations: 0 / 448.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.989e-05/0.07186, allocations: 330.9 kB / 448.9 MB, free: 9.789 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.361e-05/0.07192, allocations: 23.98 kB / 448.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.385e-05/0.07199, allocations: 74.86 kB / 449 MB, free: 9.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.0721, allocations: 89.11 kB / 449.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.07211, allocations: 0 / 449.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001687/0.07228, allocations: 125.3 kB / 449.2 MB, free: 9.434 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.0723, allocations: 4.938 kB / 449.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.07231, allocations: 8.156 kB / 449.2 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.07233, allocations: 0 / 449.2 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.901e-05/0.0724, allocations: 23.92 kB / 449.2 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.07241, allocations: 320 / 449.2 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.833e-05/0.07248, allocations: 15.88 kB / 449.3 MB, free: 9.383 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.0725, allocations: 8 kB / 449.3 MB, free: 9.375 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.696e-05/0.07259, allocations: 153.5 kB / 449.4 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/0.07266, allocations: 77.34 kB / 449.5 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.866e-05/0.0727, allocations: 25.7 kB / 449.5 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.07271, allocations: 0 / 449.5 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.07272, allocations: 0 / 449.5 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.07273, allocations: 7.938 kB / 449.5 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.07286, allocations: 225.6 kB / 449.7 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.07287, allocations: 4 kB / 449.7 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.364e-05/0.0729, allocations: 7.938 kB / 449.7 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.0729, allocations: 0 / 449.7 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.07292, allocations: 8 kB / 449.8 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.07293, allocations: 4.047 kB / 449.8 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.07293, allocations: 11.94 kB / 449.8 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.07311, allocations: 163.4 kB / 449.9 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.813e-05/0.07318, allocations: 116.7 kB / 450 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.07321, allocations: 8 kB / 450.1 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.962e-05/0.07328, allocations: 11.98 kB / 450.1 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.409e-05/0.07332, allocations: 7.938 kB / 450.1 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.07334, allocations: 7.938 kB / 450.1 MB, free: 8.441 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001317/0.07347, allocations: 196.5 kB / 450.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07348, allocations: 0 / 450.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002246/0.07371, allocations: 35.98 kB / 450.3 MB, free: 8.215 MB / 298.7 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,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009239/0.07464, allocations: 1.012 MB / 451.3 MB, free: 7.164 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.07481, allocations: 76.16 kB / 451.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.07482, allocations: 4.062 kB / 451.4 MB, free: 7.086 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.92e-05/0.07489, allocations: 31.92 kB / 451.4 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.07525, allocations: 64.31 kB / 451.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.07636, allocations: 1.044 MB / 452.5 MB, free: 5.871 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001207/0.07649, allocations: 0.7321 MB / 453.3 MB, free: 5.113 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.344e-05/0.07656, allocations: 51.42 kB / 453.3 MB, free: 5.062 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.07657, allocations: 0 / 453.3 MB, free: 5.062 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.726/2.802, allocations: 3.095 MB / 456.4 MB, free: 1.961 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,hold.y,sample.y,shiftSample.y Variables in the result:hold.u,hold.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.u,shiftSample.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.timeScaled,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.n,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time