Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.002401/0.002401, allocations: 198.9 kB / 18 MB, free: 5.082 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.765/2.765, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 43.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5069/0.5086, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.005923/0.5146, allocations: 1.95 MB / 402.2 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.5179, allocations: 1.196 MB / 403.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002977/0.5182, allocations: 4 kB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005042/0.5188, allocations: 71.59 kB / 403.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005637/0.5194, allocations: 99.52 kB / 403.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001551/0.5209, allocations: 300.9 kB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005243/0.5215, allocations: 211.4 kB / 404.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.5217, allocations: 49.66 kB / 404.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.5219, allocations: 95.61 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.5222, allocations: 107.5 kB / 404.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.299e-05/0.5223, allocations: 12 kB / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002651/0.5226, allocations: 71.91 kB / 404.4 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.5227, allocations: 67.81 kB / 404.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.5229, allocations: 99.34 kB / 404.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006189/0.5235, allocations: 292.6 kB / 404.8 MB, free: 4.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.5235, allocations: 4 kB / 404.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5235, allocations: 0 / 404.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.5236, allocations: 0 / 404.8 MB, free: 4.195 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.00137/0.5249, allocations: 0.574 MB / 405.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.525, allocations: 11.97 kB / 405.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.569e-05/0.5251, allocations: 54.67 kB / 405.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.5252, allocations: 28.56 kB / 405.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006033/0.5258, allocations: 311.5 kB / 405.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.982e-05/0.5259, allocations: 16.31 kB / 405.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.5259, allocations: 15.94 kB / 405.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00084/0.5268, allocations: 319.8 kB / 406.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.5268, allocations: 0 / 406.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.5268, allocations: 8 kB / 406.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.5269, allocations: 8 kB / 406.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.5271, allocations: 75.88 kB / 406.2 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008341/0.528, allocations: 402.3 kB / 406.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005442/0.5285, allocations: 203.9 kB / 406.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002307/0.5288, allocations: 86.55 kB / 406.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.224e-05/0.5288, allocations: 4.234 kB / 406.9 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.5291, allocations: 87.36 kB / 407 MB, free: 1.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.866e-06/0.5291, allocations: 7.875 kB / 407 MB, free: 1.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008048/0.53, allocations: 245.2 kB / 407.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/0.5301, allocations: 178.1 kB / 407.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.5307, allocations: 342.9 kB / 407.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.5307, allocations: 29.7 kB / 407.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.5309, allocations: 132.6 kB / 407.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.05e-05/0.5309, allocations: 35.64 kB / 408 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.5311, allocations: 57.92 kB / 408 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.5313, allocations: 334.8 kB / 408.3 MB, free: 384 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.5314, allocations: 40.7 kB / 408.4 MB, free: 344 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.5317, allocations: 191.6 kB / 408.6 MB, free: 88 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004246/0.5321, allocations: 211.7 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.5322, allocations: 4 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006207/0.5328, allocations: 229 kB / 409 MB, free: 15.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.5328, allocations: 12.47 kB / 409 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.5329, allocations: 7.938 kB / 409 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.5329, allocations: 8 kB / 409 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.5332, allocations: 47.86 kB / 409.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.5332, allocations: 7.984 kB / 409.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.5334, allocations: 19.84 kB / 409.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/0.5334, allocations: 12 kB / 409.1 MB, free: 15.47 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.000246/0.5337, allocations: 172 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.534, allocations: 141.1 kB / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.807e-05/0.5341, allocations: 38.12 kB / 409.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.5342, allocations: 7.938 kB / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.5342, allocations: 4 kB / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.5342, allocations: 3.938 kB / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000341/0.5345, allocations: 257.5 kB / 409.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.5346, allocations: 0 / 409.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001887/0.5348, allocations: 31.98 kB / 409.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.5348, allocations: 0 / 409.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.5348, allocations: 7.984 kB / 409.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.5348, allocations: 7.875 kB / 409.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.5348, allocations: 12.06 kB / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005733/0.5354, allocations: 243.6 kB / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.5356, allocations: 120.8 kB / 410.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.054e-05/0.5357, allocations: 8 kB / 410.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.5358, allocations: 11.98 kB / 410.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.5359, allocations: 11.94 kB / 410.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.345e-05/0.536, allocations: 11.98 kB / 410.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003443/0.5363, allocations: 245.9 kB / 410.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5363, allocations: 0 / 410.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005365/0.5369, allocations: 55.92 kB / 410.5 MB, free: 14.01 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.002548/0.5394, allocations: 1.197 MB / 411.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005354/0.54, allocations: 156.4 kB / 411.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.54, allocations: 256 / 411.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.5401, allocations: 31.98 kB / 411.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007817/0.5409, allocations: 121 kB / 412 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004746/0.5457, allocations: 2.696 MB / 414.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.5462, allocations: 0.7713 MB / 415.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.5464, allocations: 34.5 kB / 415.5 MB, free: 8.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.5466, allocations: 79.41 kB / 415.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5466, allocations: 0 / 415.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03865/0.5853, allocations: 6.429 MB / 422 MB, free: 2.539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.248/9.833, allocations: 10.91 kB / 422 MB, free: 2.531 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches