Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",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.001656/0.001656, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.002089/0.002089, allocations: 200 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 1.808/1.808, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.00131, allocations: 43.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4149, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.00415/0.4191, allocations: 1.978 MB / 402.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002284/0.4214, allocations: 1.107 MB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.4217, allocations: 7.938 kB / 403.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007899/0.4225, allocations: 158.2 kB / 403.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004326/0.4229, allocations: 111.5 kB / 403.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009189/0.4239, allocations: 249.7 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004152/0.4243, allocations: 223.4 kB / 404.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.4245, allocations: 44.3 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.4247, allocations: 95.61 kB / 404.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.4249, allocations: 87.61 kB / 404.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.418e-05/0.4249, allocations: 16 kB / 404.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.4251, allocations: 63.89 kB / 404.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.799e-05/0.4252, allocations: 55.77 kB / 404.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.4253, allocations: 83.47 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004518/0.4258, allocations: 260.8 kB / 404.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4258, allocations: 0 / 404.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4258, allocations: 0 / 404.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.4258, allocations: 0 / 404.7 MB, free: 4.297 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001155/0.427, allocations: 0.543 MB / 405.3 MB, free: 3.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.427, allocations: 12.03 kB / 405.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.156e-05/0.4271, allocations: 46.73 kB / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.238e-05/0.4272, allocations: 24.66 kB / 405.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.4277, allocations: 290.7 kB / 405.7 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.4277, allocations: 8.375 kB / 405.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.4278, allocations: 19.94 kB / 405.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006272/0.4284, allocations: 295 kB / 406 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.4284, allocations: 0 / 406 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.4284, allocations: 7.984 kB / 406 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.527e-06/0.4285, allocations: 4 kB / 406 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.4287, allocations: 63.84 kB / 406 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007939/0.4295, allocations: 398.2 kB / 406.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003597/0.4298, allocations: 164 kB / 406.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.43, allocations: 82.62 kB / 406.7 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.4301, allocations: 15.97 kB / 406.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.4302, allocations: 71.33 kB / 406.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.014e-06/0.4303, allocations: 0 / 406.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005899/0.4309, allocations: 225.5 kB / 407 MB, free: 1.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.431, allocations: 148.5 kB / 407.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.4314, allocations: 276.9 kB / 407.4 MB, free: 1.367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.4314, allocations: 33.7 kB / 407.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.4315, allocations: 120.6 kB / 407.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.628e-05/0.4316, allocations: 31.67 kB / 407.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.366e-05/0.4317, allocations: 53.94 kB / 407.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4319, allocations: 334.8 kB / 408 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.432, allocations: 36.45 kB / 408 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.4322, allocations: 170.7 kB / 408.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/0.4325, allocations: 219.5 kB / 408.4 MB, free: 256 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.4325, allocations: 0 / 408.4 MB, free: 256 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004522/0.433, allocations: 225.3 kB / 408.6 MB, free: 24 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.433, allocations: 4 kB / 408.6 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.433, allocations: 4 kB / 408.6 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.4331, allocations: 8 kB / 408.6 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.4332, allocations: 23.98 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.4332, allocations: 4 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.4334, allocations: 23.72 kB / 408.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.4334, allocations: 19.98 kB / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002562/0.4337, allocations: 164.1 kB / 408.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.4339, allocations: 125.7 kB / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.706e-05/0.434, allocations: 29.7 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.434, allocations: 0 / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.4341, allocations: 4 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4341, allocations: 7.922 kB / 409 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002716/0.4343, allocations: 241.5 kB / 409.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.4344, allocations: 4 kB / 409.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.074e-05/0.4344, allocations: 4 kB / 409.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.4344, allocations: 11.98 kB / 409.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.4344, allocations: 4 kB / 409.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.4345, allocations: 4 kB / 409.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4345, allocations: 7.922 kB / 409.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.4349, allocations: 223.7 kB / 409.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.435, allocations: 120.7 kB / 409.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.343e-05/0.4351, allocations: 12 kB / 409.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.535e-05/0.4352, allocations: 4.062 kB / 409.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.532e-05/0.4352, allocations: 7.984 kB / 409.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.4353, allocations: 15.94 kB / 409.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.4355, allocations: 200.4 kB / 409.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4355, allocations: 0 / 409.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000368/0.4359, allocations: 40 kB / 409.9 MB, free: 14.62 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001935/0.4378, allocations: 1.153 MB / 411 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003808/0.4382, allocations: 140.1 kB / 411.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4382, allocations: 0 / 411.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.309e-05/0.4383, allocations: 32.11 kB / 411.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007159/0.4391, allocations: 107.3 kB / 411.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.4425, allocations: 2.369 MB / 413.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/0.443, allocations: 0.7556 MB / 414.4 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.4432, allocations: 34.09 kB / 414.5 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.4433, allocations: 67.41 kB / 414.5 MB, free: 9.879 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4433, allocations: 0 / 414.5 MB, free: 9.879 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03297/0.4763, allocations: 5.613 MB / 420.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.19, allocations: 8.5 kB / 420.2 MB, free: 4.41 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches