Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001854/0.001854, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 213.6 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 59.91 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2457, allocations: 53.41 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003859/0.2496, allocations: 2.01 MB / 433.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002407/0.252, allocations: 1.371 MB / 434.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.2522, allocations: 11.88 kB / 434.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003674/0.2526, allocations: 67.59 kB / 434.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000453/0.2531, allocations: 147.4 kB / 434.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008601/0.2539, allocations: 270.5 kB / 435 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000363/0.2543, allocations: 231.4 kB / 435.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.2544, allocations: 32.58 kB / 435.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.2546, allocations: 103.5 kB / 435.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.2548, allocations: 115.6 kB / 435.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.421e-05/0.2548, allocations: 12 kB / 435.5 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001941/0.255, allocations: 79.94 kB / 435.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.202e-05/0.2551, allocations: 67.7 kB / 435.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.2552, allocations: 103.3 kB / 435.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004623/0.2557, allocations: 299.2 kB / 436.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.2557, allocations: 3.938 kB / 436.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2557, allocations: 0 / 436.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.2557, allocations: 3.938 kB / 436.1 MB, free: 1.762 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.0009891/0.2567, allocations: 0.5178 MB / 436.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.2567, allocations: 8.031 kB / 436.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.357e-05/0.2568, allocations: 46.73 kB / 436.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.315e-05/0.2569, allocations: 32.75 kB / 436.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.2573, allocations: 258.4 kB / 436.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.2573, allocations: 16.38 kB / 436.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/0.2573, allocations: 12.38 kB / 437 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005967/0.2579, allocations: 315.5 kB / 437.3 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2579, allocations: 4 kB / 437.3 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.258, allocations: 4 kB / 437.3 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.258, allocations: 0 / 437.3 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.2581, allocations: 71.89 kB / 437.3 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006078/0.2587, allocations: 397.3 kB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003763/0.2591, allocations: 184 kB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.2593, allocations: 86.55 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.2593, allocations: 7.984 kB / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001796/0.2595, allocations: 79.33 kB / 438.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.2595, allocations: 0 / 438.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005761/0.2601, allocations: 261.8 kB / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.2602, allocations: 170.2 kB / 438.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003891/0.2606, allocations: 360.1 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.2606, allocations: 29.7 kB / 438.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.2607, allocations: 136.6 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.584e-05/0.2607, allocations: 23.84 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.068e-05/0.2608, allocations: 61.83 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.261, allocations: 346.7 kB / 439.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.2611, allocations: 40.45 kB / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.2613, allocations: 194.9 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.2616, allocations: 207.2 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.2616, allocations: 4 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004288/0.2621, allocations: 233.1 kB / 440.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.2621, allocations: 4 kB / 440.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.2621, allocations: 8 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.2621, allocations: 4.312 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.2623, allocations: 39.92 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.526e-05/0.2623, allocations: 12.47 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.2625, allocations: 35.81 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.2625, allocations: 8 kB / 440.2 MB, free: 13.23 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.0001961/0.2627, allocations: 168.1 kB / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002654/0.2629, allocations: 153.4 kB / 440.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002921/0.2632, allocations: 119.5 kB / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2632, allocations: 4 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.2632, allocations: 3.984 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.2632, allocations: 7.938 kB / 440.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.2635, allocations: 240.5 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2635, allocations: 0 / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.2636, allocations: 35.92 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.2636, allocations: 0 / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.2637, allocations: 4 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2637, allocations: 0 / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2637, allocations: 0 / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004406/0.2641, allocations: 257.8 kB / 441.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.2642, allocations: 51.81 kB / 441.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.2643, allocations: 15.92 kB / 441.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.906e-05/0.2644, allocations: 8 kB / 441.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.483e-05/0.2644, allocations: 7.984 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.2645, allocations: 8 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002828/0.2647, allocations: 263 kB / 441.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2647, allocations: 4 kB / 441.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.2651, allocations: 51.92 kB / 441.6 MB, free: 11.77 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.002583/0.2677, allocations: 1.187 MB / 442.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003787/0.268, allocations: 147.7 kB / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.268, allocations: 0 / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.92e-05/0.2681, allocations: 25.05 kB / 442.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005835/0.2687, allocations: 125 kB / 443.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003735/0.2724, allocations: 2.739 MB / 445.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.2729, allocations: 0.7675 MB / 446.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.273, allocations: 38.5 kB / 446.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.2731, allocations: 75.41 kB / 446.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2731, allocations: 0 / 446.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03715/0.3103, allocations: 6.752 MB / 453.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.31, allocations: 0 / 453.4 MB, free: 15.85 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.749083669157699]