Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",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.001538/0.001539, allocations: 111 kB / 17.06 MB, free: 5.965 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.001807/0.001807, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.615/2.615, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 47.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.4186, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.005548/0.4242, allocations: 1.907 MB / 402.1 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003071/0.4273, allocations: 1.165 MB / 403.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002286/0.4276, allocations: 4 kB / 403.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000491/0.4282, allocations: 63.66 kB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00043/0.4286, allocations: 95.52 kB / 403.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.4298, allocations: 269.4 kB / 403.7 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003398/0.4302, allocations: 175.5 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.4303, allocations: 41.52 kB / 403.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.4305, allocations: 75.7 kB / 404 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.4307, allocations: 83.61 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.588e-05/0.4307, allocations: 12 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.4309, allocations: 63.89 kB / 404.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.4311, allocations: 51.83 kB / 404.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.4312, allocations: 83.42 kB / 404.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006034/0.4318, allocations: 252.8 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4318, allocations: 0 / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4319, allocations: 0 / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.4319, allocations: 0 / 404.5 MB, free: 4.5 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.0009677/0.4329, allocations: 0.539 MB / 405.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.4329, allocations: 8.031 kB / 405.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001834/0.4331, allocations: 42.73 kB / 405.1 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.055e-05/0.4332, allocations: 20.66 kB / 405.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006372/0.4338, allocations: 303.4 kB / 405.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.4339, allocations: 4.375 kB / 405.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.4339, allocations: 19.88 kB / 405.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005265/0.4345, allocations: 175.7 kB / 405.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4345, allocations: 3.938 kB / 405.6 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.4345, allocations: 8 kB / 405.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.4345, allocations: 4 kB / 405.7 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.4347, allocations: 31.98 kB / 405.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007528/0.4355, allocations: 403.1 kB / 406.1 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.4359, allocations: 138.5 kB / 406.2 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.436, allocations: 63.36 kB / 406.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.4361, allocations: 8.062 kB / 406.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003278/0.4364, allocations: 79.38 kB / 406.4 MB, free: 2.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 2.334e-06/0.4365, allocations: 0 / 406.4 MB, free: 2.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006532/0.4371, allocations: 173.8 kB / 406.5 MB, free: 2.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.4373, allocations: 191.9 kB / 406.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006109/0.4379, allocations: 338.6 kB / 407.1 MB, free: 1.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.4379, allocations: 29.7 kB / 407.1 MB, free: 1.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.4381, allocations: 124.4 kB / 407.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.549e-05/0.4381, allocations: 19.8 kB / 407.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.428e-05/0.4382, allocations: 29.72 kB / 407.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003198/0.4386, allocations: 338.8 kB / 407.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.4387, allocations: 23.98 kB / 407.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.4389, allocations: 107.2 kB / 407.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.4391, allocations: 101.9 kB / 407.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.4391, allocations: 4 kB / 407.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003643/0.4395, allocations: 141.2 kB / 407.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4396, allocations: 4 kB / 408 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.4396, allocations: 4 kB / 408 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.4396, allocations: 0 / 408 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.4398, allocations: 31.92 kB / 408 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.4398, allocations: 0 / 408 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.44, allocations: 23.72 kB / 408 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.44, allocations: 4 kB / 408 MB, free: 0.6289 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.y,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.00021/0.4402, allocations: 158.5 kB / 408.2 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.4404, allocations: 85.28 kB / 408.3 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.341e-05/0.4405, allocations: 29.73 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4405, allocations: 4 kB / 408.3 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4405, allocations: 0 / 408.3 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.4405, allocations: 7.938 kB / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003106/0.4409, allocations: 237.6 kB / 408.5 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4409, allocations: 0 / 408.5 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.441, allocations: 16.09 kB / 408.5 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.441, allocations: 4 kB / 408.5 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.441, allocations: 7.984 kB / 408.6 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.386e-06/0.441, allocations: 8.062 kB / 408.6 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4411, allocations: 0 / 408.6 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004524/0.4415, allocations: 191.1 kB / 408.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.4417, allocations: 116.7 kB / 408.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.925e-05/0.4418, allocations: 8 kB / 408.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.4419, allocations: 4 kB / 408.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.442, allocations: 15.92 kB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.442, allocations: 4 kB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000473/0.4425, allocations: 245.9 kB / 409.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4425, allocations: 4 kB / 409.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004635/0.443, allocations: 32 kB / 409.2 MB, free: 15.36 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,backSample1.y,shiftSample1.y,backSample1.u,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.002423/0.4454, allocations: 1.044 MB / 410.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003505/0.4458, allocations: 79.84 kB / 410.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4458, allocations: 0 / 410.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.4459, allocations: 31.98 kB / 410.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007511/0.4467, allocations: 79.8 kB / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00419/0.4509, allocations: 2.282 MB / 412.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/0.4515, allocations: 0.7591 MB / 413.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001454/0.4516, allocations: 25.53 kB / 413.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002634/0.4519, allocations: 63.42 kB / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4519, allocations: 0 / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03883/0.4908, allocations: 5.649 MB / 419.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.64, allocations: 8.547 kB / 419.2 MB, free: 5.453 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches