Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",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.001458/0.001458, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001605/0.001605, allocations: 196 kB / 18 MB, free: 5.105 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.024/2.024, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 51.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4629/0.4648, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.004265/0.4692, allocations: 1.731 MB / 402 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.4704, allocations: 0.5412 MB / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.4705, allocations: 3.938 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.139e-05/0.4706, allocations: 11.86 kB / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.4708, allocations: 15.81 kB / 402.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.4713, allocations: 99.45 kB / 402.6 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.4715, allocations: 87.77 kB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.4717, allocations: 33.08 kB / 402.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.4718, allocations: 43.8 kB / 402.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.223e-05/0.4719, allocations: 47.75 kB / 402.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.703e-05/0.4719, allocations: 4 kB / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.958e-05/0.472, allocations: 8 kB / 402.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.631e-05/0.472, allocations: 35.86 kB / 402.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.149e-05/0.4721, allocations: 43.67 kB / 402.9 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.4724, allocations: 111.6 kB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.4724, allocations: 3.938 kB / 403.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.4724, allocations: 0 / 403.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.4724, allocations: 0 / 403.1 MB, free: 5.996 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008736/0.4733, allocations: 428.6 kB / 403.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.966e-05/0.4734, allocations: 8.031 kB / 403.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.983e-05/0.4734, allocations: 54.67 kB / 403.5 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.298e-05/0.4735, allocations: 16.75 kB / 403.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.4739, allocations: 219.7 kB / 403.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.474, allocations: 8.375 kB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.474, allocations: 16.36 kB / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007388/0.4747, allocations: 257.8 kB / 404 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.4748, allocations: 0 / 404 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.4748, allocations: 15.94 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.4748, allocations: 0 / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001555/0.475, allocations: 47.97 kB / 404.1 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.4755, allocations: 302.4 kB / 404.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004526/0.4759, allocations: 131.9 kB / 404.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.4761, allocations: 74.66 kB / 404.6 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.403e-05/0.4761, allocations: 4 kB / 404.6 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.94e-05/0.4762, allocations: 42.66 kB / 404.6 MB, free: 4.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.222e-06/0.4762, allocations: 4 kB / 404.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005081/0.4767, allocations: 173.4 kB / 404.8 MB, free: 4.012 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.4769, allocations: 114.8 kB / 404.9 MB, free: 3.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.477, allocations: 153.1 kB / 405.1 MB, free: 3.719 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.4771, allocations: 29.7 kB / 405.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.326e-05/0.4772, allocations: 92.2 kB / 405.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.794e-05/0.4772, allocations: 23.8 kB / 405.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.4773, allocations: 38.08 kB / 405.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.4775, allocations: 330.8 kB / 405.6 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.25e-05/0.4776, allocations: 19.98 kB / 405.6 MB, free: 3.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.4778, allocations: 136.2 kB / 405.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.4781, allocations: 170.3 kB / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4781, allocations: 0 / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003094/0.4784, allocations: 181.2 kB / 406.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.4784, allocations: 11.94 kB / 406.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4785, allocations: 4 kB / 406.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.4785, allocations: 8.516 kB / 406.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.4786, allocations: 35.92 kB / 406.1 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.4787, allocations: 7.938 kB / 406.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.531e-05/0.4788, allocations: 15.91 kB / 406.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.4788, allocations: 12 kB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * 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 (21): * Single equations (assignments): 21 * 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.0001556/0.4789, allocations: 145.6 kB / 406.3 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001968/0.4792, allocations: 113.7 kB / 406.4 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.156e-05/0.4792, allocations: 24.7 kB / 406.4 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.4792, allocations: 7.984 kB / 406.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.4792, allocations: 7.938 kB / 406.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.4793, allocations: 3.938 kB / 406.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.4795, allocations: 189.6 kB / 406.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.4795, allocations: 4 kB / 406.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.4797, allocations: 23.98 kB / 406.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.4797, allocations: 4 kB / 406.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.4797, allocations: 0 / 406.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.4797, allocations: 4 kB / 406.7 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4797, allocations: 4.016 kB / 406.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005202/0.4802, allocations: 263.4 kB / 407 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.4804, allocations: 100.9 kB / 407 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.4804, allocations: 7.984 kB / 407.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.4805, allocations: 4 kB / 407.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.4805, allocations: 7.938 kB / 407.1 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.4806, allocations: 4 kB / 407.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.4807, allocations: 123.1 kB / 407.2 MB, free: 1.363 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4807, allocations: 0 / 407.2 MB, free: 1.363 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003229/0.481, allocations: 24 kB / 407.2 MB, free: 1.34 MB / 318.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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * 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 (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0009681/0.482, allocations: 0.8427 MB / 408.1 MB, free: 476 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.4824, allocations: 107.8 kB / 408.2 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4824, allocations: 0 / 408.2 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.473e-05/0.4824, allocations: 12.98 kB / 408.2 MB, free: 356 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006044/0.483, allocations: 87.88 kB / 408.3 MB, free: 268 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002485/0.4855, allocations: 1.871 MB / 410.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.486, allocations: 0.7202 MB / 410.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.812e-05/0.4861, allocations: 5.438 kB / 410.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.701e-05/0.4862, allocations: 39.42 kB / 410.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4862, allocations: 4 kB / 410.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.515, allocations: 2.773 MB / 413.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.99, allocations: 8 kB / 413.7 MB, free: 10.74 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches