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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 196.8 kB / 24.5 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 225.7 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 47.92 kB / 371.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2512, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003078/0.2542, allocations: 1.768 MB / 425.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.2553, allocations: 0.5376 MB / 425.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.079e-05/0.2553, allocations: 7.938 kB / 425.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.427e-05/0.2554, allocations: 11.81 kB / 425.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.2555, allocations: 15.86 kB / 425.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003837/0.2559, allocations: 95.7 kB / 425.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.2561, allocations: 91.7 kB / 426 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.2562, allocations: 21.3 kB / 426 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.798e-05/0.2563, allocations: 39.84 kB / 426 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.332e-05/0.2564, allocations: 55.7 kB / 426.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.2564, allocations: 8 kB / 426.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.44e-05/0.2564, allocations: 4 kB / 426.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.851e-05/0.2565, allocations: 27.91 kB / 426.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.367e-05/0.2565, allocations: 51.67 kB / 426.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.2567, allocations: 112.2 kB / 426.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2567, allocations: 0 / 426.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2567, allocations: 0 / 426.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.2567, allocations: 0 / 426.3 MB, free: 11.77 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000519/0.2572, allocations: 361.6 kB / 426.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2573, allocations: 8.031 kB / 426.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.275e-05/0.2573, allocations: 4.188 kB / 426.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.793e-05/0.2573, allocations: 38.75 kB / 426.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.2573, allocations: 16.84 kB / 426.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.2576, allocations: 166.2 kB / 426.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.2577, allocations: 8.375 kB / 426.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.2577, allocations: 16.38 kB / 426.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004726/0.2581, allocations: 261.1 kB / 427.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2582, allocations: 3.938 kB / 427.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2582, allocations: 4 kB / 427.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2582, allocations: 0 / 427.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.2583, allocations: 59.91 kB / 427.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.2587, allocations: 273.6 kB / 427.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.2589, allocations: 127.7 kB / 427.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.2591, allocations: 74.72 kB / 427.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/0.2591, allocations: 12.14 kB / 427.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.2591, allocations: 30.56 kB / 427.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.222e-06/0.2591, allocations: 0 / 427.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004347/0.2595, allocations: 181.6 kB / 427.9 MB, free: 9.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.125e-05/0.2596, allocations: 114.9 kB / 428 MB, free: 9.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.2598, allocations: 157.1 kB / 428.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.2598, allocations: 29.7 kB / 428.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.2599, allocations: 92.12 kB / 428.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.2599, allocations: 15.89 kB / 428.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.281e-05/0.26, allocations: 37.72 kB / 428.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2601, allocations: 326.8 kB / 428.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.179e-05/0.2602, allocations: 31.91 kB / 428.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.2604, allocations: 132.3 kB / 428.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.2606, allocations: 178.3 kB / 429 MB, free: 8.723 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2606, allocations: 0 / 429 MB, free: 8.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002885/0.2609, allocations: 181.7 kB / 429.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.2609, allocations: 8 kB / 429.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.2609, allocations: 4 kB / 429.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.2609, allocations: 4 kB / 429.2 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.261, allocations: 31.92 kB / 429.2 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.2611, allocations: 12.25 kB / 429.2 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.452e-05/0.2611, allocations: 19.88 kB / 429.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.2612, allocations: 12 kB / 429.2 MB, free: 8.449 MB / 334.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.0001363/0.2613, allocations: 140.9 kB / 429.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.2615, allocations: 117.5 kB / 429.5 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.175e-05/0.2615, allocations: 24.7 kB / 429.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2615, allocations: 0 / 429.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.2615, allocations: 7.938 kB / 429.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.2615, allocations: 0 / 429.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.2617, allocations: 168.6 kB / 429.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2617, allocations: 0 / 429.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.2619, allocations: 31.92 kB / 429.7 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2619, allocations: 4 kB / 429.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.2619, allocations: 0 / 429.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2619, allocations: 4 kB / 429.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.2619, allocations: 7.938 kB / 429.7 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.2622, allocations: 245 kB / 430 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.657e-05/0.2622, allocations: 27.88 kB / 430 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.2623, allocations: 12 kB / 430 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.857e-05/0.2624, allocations: 7.938 kB / 430 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.2624, allocations: 15.88 kB / 430 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.2624, allocations: 7.984 kB / 430 MB, free: 7.566 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.072e-05/0.2625, allocations: 115.1 kB / 430.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2625, allocations: 0 / 430.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.2628, allocations: 24 kB / 430.2 MB, free: 7.43 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: 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.0008025/0.2636, allocations: 0.8388 MB / 431 MB, free: 6.559 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002551/0.2638, allocations: 104.8 kB / 431.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2638, allocations: 4.125 kB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.588e-05/0.2639, allocations: 4 kB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.2643, allocations: 85.58 kB / 431.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.2665, allocations: 1.878 MB / 433.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.2669, allocations: 0.7124 MB / 433.8 MB, free: 3.562 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.974e-05/0.2669, allocations: 17.42 kB / 433.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.063e-05/0.267, allocations: 31.52 kB / 433.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.267, allocations: 4 kB / 433.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02418/0.2912, allocations: 2.983 MB / 436.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.75, allocations: 10.14 kB / 436.8 MB, free: 0.6641 MB / 334.1 MB " [Timeout remaining time 649] (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 --stepSize=1.78998e-05 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,upSample1.y,upSample2.y,add.y Variables in the result:add.k1,add.k2,add.u1,add.u2,add.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(upSample1.b),previous(upSample1.b_super),previous(upSample2.b),previous(upSample2.b_super),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,upSample1.b,upSample1.b_super,upSample1.factor,upSample1.inferFactor,upSample1.u,upSample1.y,upSample2.b,upSample2.b_super,upSample2.factor,upSample2.inferFactor,upSample2.u,upSample2.y [Calling sys.exit(0), Time elapsed: 13.173453979019541]