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.001451/0.001451, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001672/0.001672, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001557/0.001557, allocations: 43.94 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2662, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003873/0.2701, allocations: 2.015 MB / 433.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002389/0.2724, allocations: 1.369 MB / 434.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.2726, allocations: 3.938 kB / 434.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003378/0.2729, allocations: 71.59 kB / 434.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003827/0.2733, allocations: 151.4 kB / 434.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008113/0.2741, allocations: 270.3 kB / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003086/0.2744, allocations: 219.4 kB / 435.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.2745, allocations: 36.56 kB / 435.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.2747, allocations: 107.6 kB / 435.4 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001765/0.2749, allocations: 111.5 kB / 435.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.2749, allocations: 12 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.2751, allocations: 75.94 kB / 435.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.614e-05/0.2752, allocations: 67.77 kB / 435.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.2753, allocations: 107.3 kB / 435.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004053/0.2757, allocations: 299.1 kB / 436 MB, free: 1.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2757, allocations: 0 / 436 MB, free: 1.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2757, allocations: 4 kB / 436 MB, free: 1.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2757, allocations: 0 / 436 MB, free: 1.949 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.0008479/0.2766, allocations: 0.5178 MB / 436.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.2766, allocations: 12.03 kB / 436.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.109e-05/0.2767, allocations: 54.61 kB / 436.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.13e-05/0.2767, allocations: 32.75 kB / 436.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.2771, allocations: 254.5 kB / 436.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.2771, allocations: 8.375 kB / 436.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.2772, allocations: 23.88 kB / 436.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000575/0.2777, allocations: 317 kB / 437.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.2777, allocations: 0 / 437.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.2778, allocations: 4 kB / 437.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.2778, allocations: 4 kB / 437.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.2779, allocations: 71.89 kB / 437.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005616/0.2785, allocations: 389.4 kB / 437.7 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.2789, allocations: 183.9 kB / 437.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.279, allocations: 86.55 kB / 437.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.2791, allocations: 12.2 kB / 438 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.2793, allocations: 79.31 kB / 438 MB, free: 15.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.2793, allocations: 0 / 438 MB, free: 15.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00056/0.2798, allocations: 257.3 kB / 438.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.2799, allocations: 178.2 kB / 438.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003881/0.2803, allocations: 360 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.2804, allocations: 29.7 kB / 438.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.2805, allocations: 140.5 kB / 439 MB, free: 14.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.953e-05/0.2805, allocations: 31.83 kB / 439 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.754e-05/0.2806, allocations: 53.89 kB / 439.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2807, allocations: 342.8 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.2808, allocations: 44.44 kB / 439.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.2811, allocations: 190.9 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.2813, allocations: 203.2 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2813, allocations: 3.938 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004035/0.2817, allocations: 237.1 kB / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.2818, allocations: 10.5 kB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.2818, allocations: 4 kB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.2818, allocations: 8.375 kB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.2819, allocations: 39.86 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.282, allocations: 4.531 kB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.2821, allocations: 27.88 kB / 440.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.2821, allocations: 15.94 kB / 440.2 MB, free: 13.41 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.0001802/0.2823, allocations: 172.1 kB / 440.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.2825, allocations: 141.4 kB / 440.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.2828, allocations: 131.4 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2828, allocations: 3.938 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.2828, allocations: 4 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.2828, allocations: 7.984 kB / 440.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002583/0.2831, allocations: 240.5 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2831, allocations: 0 / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.2832, allocations: 27.92 kB / 440.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.2832, allocations: 4 kB / 440.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.2832, allocations: 4 kB / 440.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.2832, allocations: 7.938 kB / 440.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2832, allocations: 0 / 440.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.2836, allocations: 249.2 kB / 441.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.2837, allocations: 51.72 kB / 441.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.2838, allocations: 11.98 kB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.599e-05/0.2839, allocations: 7.938 kB / 441.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.842e-05/0.2839, allocations: 19.86 kB / 441.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.2839, allocations: 4 kB / 441.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002704/0.2842, allocations: 259 kB / 441.5 MB, free: 12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2842, allocations: 4 kB / 441.5 MB, free: 12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003249/0.2845, allocations: 51.92 kB / 441.5 MB, free: 11.95 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 (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.002357/0.2869, allocations: 1.185 MB / 442.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003553/0.2872, allocations: 147.7 kB / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2872, allocations: 0 / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.828e-05/0.2873, allocations: 32.98 kB / 442.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.2879, allocations: 130.2 kB / 443 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003342/0.2912, allocations: 2.747 MB / 445.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.2916, allocations: 0.7636 MB / 446.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.2917, allocations: 38.53 kB / 446.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.2919, allocations: 83.41 kB / 446.7 MB, free: 6.734 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2919, allocations: 0 / 446.7 MB, free: 6.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03577/0.3276, allocations: 6.742 MB / 453.4 MB, free: 72 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.5, allocations: 4.062 kB / 453.4 MB, free: 68 kB / 350.1 MB " [Timeout remaining time 648] (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: 14.07159172790125]