Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001081/0.001081, allocations: 121.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.601/1.601, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 55.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3208, allocations: 50.55 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004526/0.3254, allocations: 1.965 MB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002811/0.3283, allocations: 1.344 MB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.3286, allocations: 4 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004075/0.329, allocations: 71.59 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005262/0.3296, allocations: 139.4 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.3306, allocations: 274.6 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.331, allocations: 223.4 kB / 412.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.3312, allocations: 52.28 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.3314, allocations: 99.55 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.3316, allocations: 99.59 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.3317, allocations: 16 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.3319, allocations: 75.89 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.332, allocations: 63.77 kB / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.3321, allocations: 103.3 kB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005131/0.3326, allocations: 300.6 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3327, allocations: 0 / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3327, allocations: 0 / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.3327, allocations: 4 kB / 413.6 MB, free: 12.73 MB / 334.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.001102/0.3338, allocations: 0.5895 MB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.3339, allocations: 8.031 kB / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.004e-05/0.3339, allocations: 46.73 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.899e-05/0.334, allocations: 36.56 kB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004592/0.3345, allocations: 315.5 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.3345, allocations: 12.38 kB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.3345, allocations: 15.94 kB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006704/0.3352, allocations: 326.4 kB / 414.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.3352, allocations: 0 / 414.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.3353, allocations: 4 kB / 414.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3353, allocations: 7.938 kB / 414.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.3355, allocations: 67.95 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006677/0.3362, allocations: 422.2 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003876/0.3366, allocations: 192 kB / 415.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.3367, allocations: 90.55 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.138e-05/0.3368, allocations: 7.984 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.337, allocations: 75.33 kB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.134e-06/0.337, allocations: 0 / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006067/0.3376, allocations: 261.7 kB / 416 MB, free: 10.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.3377, allocations: 170.5 kB / 416.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004054/0.3382, allocations: 354.9 kB / 416.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.3382, allocations: 33.7 kB / 416.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.3383, allocations: 136.5 kB / 416.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.3384, allocations: 31.7 kB / 416.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.784e-05/0.3384, allocations: 49.94 kB / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3386, allocations: 342.8 kB / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.3387, allocations: 44.44 kB / 417.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.3389, allocations: 186.9 kB / 417.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.3392, allocations: 215.2 kB / 417.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3392, allocations: 0 / 417.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004125/0.3397, allocations: 241.2 kB / 417.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3397, allocations: 8 kB / 417.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.3397, allocations: 8 kB / 417.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.3397, allocations: 4 kB / 417.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.3399, allocations: 48.39 kB / 417.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.3399, allocations: 11.92 kB / 417.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.3401, allocations: 23.86 kB / 417.9 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.3401, allocations: 16 kB / 417.9 MB, free: 7.98 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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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.0002125/0.3403, allocations: 176 kB / 418 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000236/0.3406, allocations: 145.2 kB / 418.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.751e-05/0.3407, allocations: 37.78 kB / 418.2 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.3407, allocations: 3.938 kB / 418.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3407, allocations: 4 kB / 418.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3407, allocations: 4 kB / 418.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.341, allocations: 269.4 kB / 418.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.341, allocations: 0 / 418.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.3411, allocations: 27.92 kB / 418.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.3412, allocations: 4 kB / 418.5 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.3412, allocations: 7.984 kB / 418.5 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.3412, allocations: 7.938 kB / 418.5 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3412, allocations: 0 / 418.5 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004357/0.3416, allocations: 239.6 kB / 418.8 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.3418, allocations: 128.7 kB / 418.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.303e-05/0.3419, allocations: 11.94 kB / 418.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.19e-05/0.342, allocations: 11.92 kB / 418.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.569e-05/0.342, allocations: 11.94 kB / 418.9 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/0.3421, allocations: 11.98 kB / 418.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002828/0.3424, allocations: 257.9 kB / 419.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3424, allocations: 4 kB / 419.2 MB, free: 6.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003555/0.3427, allocations: 44 kB / 419.2 MB, free: 6.492 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.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.001882/0.3446, allocations: 1.184 MB / 420.4 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004276/0.3451, allocations: 155.7 kB / 420.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3451, allocations: 0 / 420.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.238e-05/0.3452, allocations: 32.98 kB / 420.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006095/0.3458, allocations: 123.6 kB / 420.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003599/0.3494, allocations: 2.72 MB / 423.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.3498, allocations: 0.7712 MB / 424.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.3499, allocations: 38.5 kB / 424.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3501, allocations: 83.39 kB / 424.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3501, allocations: 0 / 424.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02757/0.3777, allocations: 6.514 MB / 430.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/8.16, allocations: 7.5 kB / 430.9 MB, free: 10.89 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches