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.001802/0.001802, 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.002554/0.002554, 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.541/1.541, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.001131, allocations: 43.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.3871, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.005344/0.3926, allocations: 1.981 MB / 402.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002308/0.3949, allocations: 1.11 MB / 403.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002868/0.3952, allocations: 0 / 403.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008512/0.3962, allocations: 161.7 kB / 403.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004354/0.3966, allocations: 111.6 kB / 403.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000877/0.3975, allocations: 249.4 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004136/0.3979, allocations: 223.4 kB / 404.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.3981, allocations: 48.28 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.3983, allocations: 95.55 kB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.3985, allocations: 87.61 kB / 404.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.3985, allocations: 16 kB / 404.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001917/0.3987, allocations: 63.95 kB / 404.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.168e-05/0.3988, allocations: 51.78 kB / 404.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.399, allocations: 99.39 kB / 404.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004463/0.3994, allocations: 244.8 kB / 404.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3994, allocations: 0 / 404.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3994, allocations: 0 / 404.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.298e-06/0.3994, 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.0009991/0.4004, allocations: 0.5507 MB / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4005, allocations: 12.03 kB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.733e-05/0.4006, allocations: 46.73 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.038e-05/0.4006, allocations: 24.66 kB / 405.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005126/0.4012, allocations: 286.7 kB / 405.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.4012, allocations: 12.38 kB / 405.7 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.4012, allocations: 15.94 kB / 405.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000572/0.4018, allocations: 299 kB / 406 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.4018, allocations: 0 / 406 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.4019, allocations: 4 kB / 406 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.4019, allocations: 0 / 406 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.402, allocations: 63.91 kB / 406 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005656/0.4026, allocations: 382.3 kB / 406.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.403, allocations: 171.8 kB / 406.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001461/0.4031, allocations: 94.67 kB / 406.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.4032, allocations: 12.06 kB / 406.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/0.4033, allocations: 75.38 kB / 406.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.134e-06/0.4034, allocations: 0 / 406.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005168/0.4039, allocations: 221.7 kB / 407 MB, free: 1.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.404, allocations: 148.4 kB / 407.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.4043, allocations: 280.9 kB / 407.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.4043, allocations: 29.7 kB / 407.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.628e-05/0.4044, allocations: 120.6 kB / 407.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.4045, allocations: 35.69 kB / 407.6 MB, free: 1.172 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.4046, allocations: 53.92 kB / 407.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.4047, allocations: 326.8 kB / 408 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.318e-05/0.4048, allocations: 40.44 kB / 408 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.405, allocations: 174.7 kB / 408.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.4052, allocations: 207.2 kB / 408.4 MB, free: 264 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.4052, allocations: 4 kB / 408.4 MB, free: 260 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003681/0.4056, allocations: 221.5 kB / 408.6 MB, free: 32 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.4056, allocations: 8 kB / 408.6 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.4057, allocations: 4.078 kB / 408.6 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.4057, allocations: 4 kB / 408.6 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.4058, allocations: 27.97 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.4058, allocations: 11.92 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.406, allocations: 19.78 kB / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.406, allocations: 16 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.000149/0.4061, allocations: 172 kB / 408.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.4063, allocations: 117.7 kB / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.276e-05/0.4064, allocations: 29.7 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.4064, allocations: 4 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4064, allocations: 4 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.4064, allocations: 3.938 kB / 409 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.4067, allocations: 249.4 kB / 409.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.4067, allocations: 0 / 409.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.631e-05/0.4067, allocations: 15.94 kB / 409.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.4067, allocations: 0 / 409.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.4068, allocations: 11.98 kB / 409.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.4068, allocations: 0 / 409.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4068, allocations: 0 / 409.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.4071, allocations: 228 kB / 409.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.4073, allocations: 120.8 kB / 409.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.4073, allocations: 11.94 kB / 409.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.926e-05/0.4074, allocations: 8 kB / 409.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.4075, allocations: 11.98 kB / 409.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.4075, allocations: 7.938 kB / 409.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.4077, allocations: 200.4 kB / 409.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4077, allocations: 0 / 409.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003382/0.4081, 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.001752/0.4098, allocations: 1.158 MB / 411 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003202/0.4102, allocations: 146.5 kB / 411.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4102, allocations: 0 / 411.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.387e-05/0.4103, allocations: 23.98 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.000498/0.4108, allocations: 112.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.002978/0.4138, allocations: 2.357 MB / 413.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.4142, allocations: 0.7595 MB / 414.4 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.4143, allocations: 34.39 kB / 414.5 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.4144, allocations: 71.41 kB / 414.5 MB, free: 9.875 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4144, allocations: 0 / 414.5 MB, free: 9.875 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.4403, allocations: 5.616 MB / 420.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.48, allocations: 12.56 kB / 420.2 MB, free: 4.398 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