Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 210.8 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 47.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2709, allocations: 53.37 MB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003696/0.2746, allocations: 1.96 MB / 433 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.2769, allocations: 1.274 MB / 434.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.2771, allocations: 11.94 kB / 434.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003192/0.2774, allocations: 67.61 kB / 434.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003936/0.2778, allocations: 147.4 kB / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007527/0.2786, allocations: 266.2 kB / 434.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.2788, allocations: 223.4 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.279, allocations: 42.23 kB / 435.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.2791, allocations: 95.62 kB / 435.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.2793, allocations: 115.5 kB / 435.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.2793, allocations: 12 kB / 435.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.2795, allocations: 79.88 kB / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.057e-05/0.2796, allocations: 67.77 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.345e-05/0.2797, allocations: 75.47 kB / 435.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.2801, allocations: 298.8 kB / 435.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2801, allocations: 0 / 435.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2801, allocations: 4 kB / 435.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2801, allocations: 0 / 435.8 MB, free: 1.945 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.0008966/0.281, allocations: 0.5256 MB / 436.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.281, allocations: 8.031 kB / 436.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.975e-05/0.2811, allocations: 46.75 kB / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.608e-05/0.2811, allocations: 32.73 kB / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.2815, allocations: 258.4 kB / 436.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.2815, allocations: 16.38 kB / 436.7 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/0.2816, allocations: 15.94 kB / 436.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006013/0.2822, allocations: 341.8 kB / 437 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2822, allocations: 3.938 kB / 437 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.2822, allocations: 4 kB / 437 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.2822, allocations: 4 kB / 437 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.2824, allocations: 71.94 kB / 437.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.2829, allocations: 365.4 kB / 437.5 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.2833, allocations: 184 kB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.2835, allocations: 86.55 kB / 437.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.2835, allocations: 15.86 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001696/0.2837, allocations: 79.38 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.593e-06/0.2837, allocations: 0 / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.000559/0.2842, allocations: 261.5 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.2843, allocations: 144.5 kB / 438.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/0.2847, allocations: 364.1 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.2847, allocations: 29.7 kB / 438.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.465e-05/0.2848, allocations: 128.6 kB / 438.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.646e-05/0.2849, allocations: 35.78 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.578e-05/0.2849, allocations: 57.88 kB / 438.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2851, allocations: 346.8 kB / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.78e-05/0.2852, allocations: 44.44 kB / 439.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.2854, allocations: 229.5 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002833/0.2857, allocations: 219.2 kB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2857, allocations: 0 / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003802/0.2861, allocations: 245.1 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.2861, allocations: 4 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2861, allocations: 4 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.2861, allocations: 8.531 kB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.2863, allocations: 39.92 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.2863, allocations: 11.94 kB / 439.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.2864, allocations: 23.86 kB / 440 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.2864, allocations: 8 kB / 440 MB, free: 13.37 MB / 350.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.0001664/0.2866, allocations: 171.8 kB / 440.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.2868, allocations: 141.4 kB / 440.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002845/0.2871, allocations: 135.9 kB / 440.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.2871, allocations: 3.938 kB / 440.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2871, allocations: 8 kB / 440.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.2871, allocations: 7.922 kB / 440.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.2873, allocations: 220.6 kB / 440.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.2873, allocations: 4.25 kB / 440.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.2874, allocations: 27.98 kB / 440.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.2874, allocations: 8 kB / 440.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.2875, allocations: 7.984 kB / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.2875, allocations: 4 kB / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2875, allocations: 0 / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000394/0.2879, allocations: 258.5 kB / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.288, allocations: 55.72 kB / 441 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.288, allocations: 8 kB / 441 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.423e-05/0.2881, allocations: 11.98 kB / 441 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.2882, allocations: 15.91 kB / 441 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.2882, allocations: 8 kB / 441 MB, free: 12.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002503/0.2884, allocations: 259 kB / 441.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2884, allocations: 0 / 441.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.2887, allocations: 44 kB / 441.3 MB, free: 11.91 MB / 350.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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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 (23): * Single equations (assignments): 21 * 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.002301/0.291, allocations: 1.248 MB / 442.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003244/0.2914, allocations: 151.6 kB / 442.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2914, allocations: 0 / 442.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.739e-05/0.2914, allocations: 37.03 kB / 442.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005117/0.292, allocations: 123.2 kB / 442.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.295, allocations: 2.732 MB / 445.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000155/0.2952, allocations: 165.3 kB / 445.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.364e-05/0.2953, allocations: 34.66 kB / 445.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.2954, allocations: 87.62 kB / 445.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2954, allocations: 4 kB / 445.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03436/0.3297, allocations: 7.319 MB / 453.2 MB, free: 36 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.79, allocations: 2.75 kB / 453.2 MB, free: 36 kB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.246018034988083]