Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 199.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 226.5 MB / 244.7 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007484/0.0007486, allocations: 102.5 kB / 296.7 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002392/0.0002393, allocations: 7.938 kB / 356.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3237, allocations: 51.29 MB / 408.1 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.002461/0.3262, allocations: 1.685 MB / 409.8 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.328, allocations: 1.15 MB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.3282, allocations: 3.938 kB / 411 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000609/0.3289, allocations: 143.6 kB / 411.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003874/0.3293, allocations: 129.5 kB / 411.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000692/0.33, allocations: 212 kB / 411.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002568/0.3302, allocations: 208.2 kB / 411.6 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.3304, allocations: 46.75 kB / 411.7 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.3305, allocations: 79.62 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.3307, allocations: 84.14 kB / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.3307, allocations: 4.875 kB / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001408/0.3309, allocations: 39.98 kB / 411.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.283e-05/0.3309, allocations: 47.77 kB / 411.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.475e-05/0.331, allocations: 101.8 kB / 412 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.3312, allocations: 198.4 kB / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3312, allocations: 0 / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3313, allocations: 0 / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3313, allocations: 0 / 412.2 MB, free: 23.45 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000746/0.332, allocations: 0.5158 MB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.3321, allocations: 8.031 kB / 412.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.375e-05/0.3321, allocations: 42.73 kB / 412.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.299e-05/0.3322, allocations: 28.66 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.3325, allocations: 286.7 kB / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3325, allocations: 12.36 kB / 413.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.3326, allocations: 15.94 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004989/0.3331, allocations: 296.2 kB / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3331, allocations: 0 / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.3331, allocations: 0 / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3331, allocations: 4 kB / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.3333, allocations: 67.89 kB / 413.5 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004577/0.3337, allocations: 390.3 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002616/0.334, allocations: 168 kB / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.3341, allocations: 94.47 kB / 414.1 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.3342, allocations: 11.98 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000138/0.3343, allocations: 75.39 kB / 414.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.3343, allocations: 0 / 414.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004151/0.3347, allocations: 221.2 kB / 414.4 MB, free: 21.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.3348, allocations: 156.4 kB / 414.6 MB, free: 20.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.335, allocations: 280.9 kB / 414.9 MB, free: 20.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.3351, allocations: 30.08 kB / 414.9 MB, free: 20.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.97e-05/0.3351, allocations: 120.6 kB / 415 MB, free: 20.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.237e-05/0.3352, allocations: 35.64 kB / 415 MB, free: 20.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.3352, allocations: 4 kB / 415 MB, free: 20.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.643e-05/0.3353, allocations: 338.8 kB / 415.4 MB, free: 20 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.583e-05/0.3353, allocations: 36.45 kB / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.3355, allocations: 166.1 kB / 415.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.3357, allocations: 199.2 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3357, allocations: 0 / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003058/0.336, allocations: 221.4 kB / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.336, allocations: 8 kB / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.336, allocations: 7.984 kB / 416 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.3361, allocations: 8 kB / 416 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.062e-05/0.3362, allocations: 23.88 kB / 416 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.3362, allocations: 11.98 kB / 416 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.3363, allocations: 15.94 kB / 416.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.3363, allocations: 12 kB / 416.1 MB, free: 19.19 MB / 298.7 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 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.3365, allocations: 168.1 kB / 416.2 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.3366, allocations: 125.2 kB / 416.4 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.028e-05/0.3367, allocations: 29.7 kB / 416.4 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3367, allocations: 0 / 416.4 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.3367, allocations: 4 kB / 416.4 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3367, allocations: 3.938 kB / 416.4 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.3369, allocations: 253.5 kB / 416.6 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3369, allocations: 320 / 416.6 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.853e-05/0.3369, allocations: 7.938 kB / 416.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3369, allocations: 12 kB / 416.7 MB, free: 18.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.337, allocations: 7.984 kB / 416.7 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.337, allocations: 4 kB / 416.7 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.337, allocations: 3.938 kB / 416.7 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002965/0.3373, allocations: 229.5 kB / 416.9 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.889e-05/0.3374, allocations: 116.8 kB / 417 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.3374, allocations: 12 kB / 417 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.64e-05/0.3375, allocations: 7.984 kB / 417 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.3376, allocations: 8 kB / 417 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.3376, allocations: 4 kB / 417 MB, free: 18.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001737/0.3378, allocations: 208.4 kB / 417.3 MB, free: 17.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3378, allocations: 4 kB / 417.3 MB, free: 17.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002892/0.3381, allocations: 44.09 kB / 417.3 MB, free: 17.86 MB / 298.7 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 (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.001463/0.3396, allocations: 1.152 MB / 418.5 MB, free: 16.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002931/0.3399, allocations: 143.8 kB / 418.6 MB, free: 16.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3399, allocations: 0 / 418.6 MB, free: 16.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.935e-05/0.3399, allocations: 24 kB / 418.6 MB, free: 16.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004801/0.3404, allocations: 114.8 kB / 418.7 MB, free: 16.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.3422, allocations: 1.325 MB / 420.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.3424, allocations: 0.7565 MB / 420.8 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.3426, allocations: 71.41 kB / 420.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3426, allocations: 0 / 420.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.144/3.486, allocations: 3.735 MB / 424.6 MB, free: 10.51 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,upSample1.y,upSample2.y,and1.y Variables in the result:and1.u1,and1.u2,and1.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(upSample1.b),previous(upSample1.b_super),previous(upSample2.b),previous(upSample2.b_super),sample1.u,sample1.y,table1.combiTimeTable.columns[1],table1.combiTimeTable.extrapolation,table1.combiTimeTable.isCsvExt,table1.combiTimeTable.nHeaderLines,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nout,table1.combiTimeTable.offset[1],table1.combiTimeTable.p_offset[1],table1.combiTimeTable.shiftTime,table1.combiTimeTable.smoothness,table1.combiTimeTable.startTime,table1.combiTimeTable.t_max,table1.combiTimeTable.t_maxScaled,table1.combiTimeTable.t_min,table1.combiTimeTable.t_minScaled,table1.combiTimeTable.tableOnFile,table1.combiTimeTable.table[1,1],table1.combiTimeTable.table[1,2],table1.combiTimeTable.table[2,1],table1.combiTimeTable.table[2,2],table1.combiTimeTable.table[3,1],table1.combiTimeTable.table[3,2],table1.combiTimeTable.timeEvents,table1.combiTimeTable.timeScale,table1.combiTimeTable.timeScaled,table1.combiTimeTable.verboseExtrapolation,table1.combiTimeTable.verboseRead,table1.combiTimeTable.y[1],table1.extrapolation,table1.n,table1.realToBoolean.threshold,table1.realToBoolean.u,table1.realToBoolean.y,table1.shiftTime,table1.startTime,table1.startValue,table1.table[1],table1.table[2],table1.y,time,upSample1.b,upSample1.b_super,upSample1.dummy,upSample1.factor,upSample1.inferFactor,upSample1.u,upSample1.u_super,upSample1.y,upSample2.b,upSample2.b_super,upSample2.dummy,upSample2.factor,upSample2.inferFactor,upSample2.u,upSample2.u_super,upSample2.y