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.002051/0.002051, allocations: 107.6 kB / 17.06 MB, free: 6.145 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.002296/0.002295, allocations: 195 kB / 18 MB, free: 5.219 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.387/2.387, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 51.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5205/0.5225, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.006623/0.5292, allocations: 1.952 MB / 402.2 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004157/0.5334, allocations: 1.192 MB / 403.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003717/0.5338, allocations: 3.938 kB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006494/0.5346, allocations: 75.64 kB / 403.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006011/0.5352, allocations: 95.53 kB / 403.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001702/0.5369, allocations: 306.2 kB / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005432/0.5375, allocations: 211.4 kB / 404.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002292/0.5377, allocations: 45.66 kB / 404.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002689/0.538, allocations: 99.55 kB / 404.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.5383, allocations: 103.5 kB / 404.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.783e-05/0.5384, allocations: 12 kB / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003302/0.5387, allocations: 71.95 kB / 404.4 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.5389, allocations: 71.81 kB / 404.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.5391, allocations: 99.28 kB / 404.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007374/0.5399, allocations: 292.7 kB / 404.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.5399, allocations: 0 / 404.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5399, allocations: 0 / 404.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.5399, allocations: 8 kB / 404.8 MB, free: 4.188 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.001609/0.5416, allocations: 0.5739 MB / 405.4 MB, free: 3.559 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.5416, allocations: 8.031 kB / 405.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.867e-05/0.5417, allocations: 46.73 kB / 405.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.5419, allocations: 32.56 kB / 405.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00072/0.5426, allocations: 307.5 kB / 405.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.5427, allocations: 16.38 kB / 405.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.5427, allocations: 15.94 kB / 405.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.5438, allocations: 319.8 kB / 406.1 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.5439, allocations: 0 / 406.1 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.5439, allocations: 11.98 kB / 406.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.5439, allocations: 0 / 406.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.5442, allocations: 67.91 kB / 406.2 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.5453, allocations: 422.2 kB / 406.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.546, allocations: 200 kB / 406.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.5463, allocations: 90.53 kB / 406.9 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.567e-05/0.5463, allocations: 11.88 kB / 406.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002945/0.5466, allocations: 83.31 kB / 407 MB, free: 1.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 3.206e-06/0.5467, allocations: 4 kB / 407 MB, free: 1.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001018/0.5477, allocations: 253.4 kB / 407.3 MB, free: 1.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001935/0.5479, allocations: 170.1 kB / 407.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006726/0.5486, allocations: 342.9 kB / 407.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5e-05/0.5487, allocations: 33.7 kB / 407.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.5488, allocations: 132.6 kB / 407.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.044e-05/0.5489, allocations: 35.64 kB / 408 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.5491, allocations: 49.94 kB / 408 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.5493, allocations: 342.8 kB / 408.3 MB, free: 376 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.5495, allocations: 40.44 kB / 408.4 MB, free: 336 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.5498, allocations: 191.6 kB / 408.6 MB, free: 80 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.5503, allocations: 211.2 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.5503, allocations: 0 / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000707/0.5511, allocations: 233 kB / 409 MB, free: 15.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.5511, allocations: 14.48 kB / 409 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.5511, allocations: 4 kB / 409 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.5512, allocations: 4 kB / 409 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.5515, allocations: 44.39 kB / 409.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.5515, allocations: 4 kB / 409.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.5517, allocations: 23.84 kB / 409.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.809e-05/0.5518, allocations: 19.98 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.0003023/0.5521, allocations: 172 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003761/0.5525, allocations: 141.2 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.5526, allocations: 30.2 kB / 409.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.5527, allocations: 7.938 kB / 409.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.5527, allocations: 0 / 409.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5527, allocations: 8.312 kB / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004103/0.5531, allocations: 265.5 kB / 409.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.5531, allocations: 7.938 kB / 409.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.5534, allocations: 27.98 kB / 409.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.104e-06/0.5534, allocations: 3.938 kB / 409.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.791e-05/0.5535, allocations: 8 kB / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.979e-06/0.5535, allocations: 7.875 kB / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.5535, allocations: 0 / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008059/0.5543, allocations: 247.7 kB / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.5546, allocations: 124.8 kB / 410.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.316e-05/0.5547, allocations: 8 kB / 410.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.5549, allocations: 4 kB / 410.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.555, allocations: 15.92 kB / 410.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.202e-05/0.5551, allocations: 4 kB / 410.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005128/0.5556, allocations: 253.9 kB / 410.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5556, allocations: 4 kB / 410.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007431/0.5564, allocations: 47.94 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.003708/0.5601, allocations: 1.19 MB / 411.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006583/0.5608, allocations: 159.7 kB / 411.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.5608, allocations: 0 / 411.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.561, allocations: 25.05 kB / 411.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.562, allocations: 130.9 kB / 412 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00597/0.568, allocations: 2.696 MB / 414.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/0.5686, allocations: 0.7752 MB / 415.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002122/0.5689, allocations: 34.56 kB / 415.5 MB, free: 8.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.5691, allocations: 75.41 kB / 415.5 MB, free: 8.828 MB / 334.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5691, allocations: 0 / 415.5 MB, free: 8.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04471/0.6139, allocations: 6.434 MB / 422 MB, free: 2.535 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.73, allocations: 7.844 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