Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.001233/0.001233, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001385/0.001385, allocations: 214.9 kB / 23.74 MB, free: 4.656 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.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 43.94 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2728, allocations: 53.36 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002806/0.2757, allocations: 1.53 MB / 432.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003979/0.2761, allocations: 135.5 kB / 432.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.897e-05/0.2761, allocations: 4 kB / 432.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.964e-05/0.2762, allocations: 3.938 kB / 432.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.2763, allocations: 11.91 kB / 432.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.2765, allocations: 35.92 kB / 432.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.781e-05/0.2766, allocations: 27.91 kB / 432.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.873e-05/0.2767, allocations: 8 kB / 432.9 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.176e-05/0.2767, allocations: 11.92 kB / 432.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.662e-05/0.2768, allocations: 15.88 kB / 432.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.2768, allocations: 4 kB / 432.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.856e-06/0.2768, allocations: 0 / 432.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.6e-05/0.2768, allocations: 11.98 kB / 432.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.207e-05/0.2769, allocations: 19.81 kB / 432.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001148/0.277, allocations: 52.11 kB / 433 MB, free: 4.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.277, allocations: 4 kB / 433 MB, free: 4.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.277, allocations: 0 / 433 MB, free: 4.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.277, allocations: 0 / 433 MB, free: 4.965 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004328/0.2774, allocations: 286.1 kB / 433.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.2775, allocations: 8.031 kB / 433.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.211e-05/0.2775, allocations: 30.75 kB / 433.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.613e-05/0.2776, allocations: 8.891 kB / 433.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.2778, allocations: 133.8 kB / 433.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.2778, allocations: 4.375 kB / 433.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.2778, allocations: 384 / 433.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002658/0.2781, allocations: 97.61 kB / 433.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2781, allocations: 3.938 kB / 433.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.2781, allocations: 3.938 kB / 433.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.2781, allocations: 0 / 433.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.937e-05/0.2782, allocations: 19.92 kB / 433.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003385/0.2785, allocations: 228.9 kB / 433.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.784e-05/0.2786, allocations: 53.08 kB / 433.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.911e-05/0.2787, allocations: 17.78 kB / 433.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.2787, allocations: 7.969 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.734e-05/0.2787, allocations: 30.56 kB / 433.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2787, allocations: 0 / 433.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002341/0.2789, allocations: 57.62 kB / 434 MB, free: 3.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.279, allocations: 89.36 kB / 434.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.2792, allocations: 134 kB / 434.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.2792, allocations: 25.7 kB / 434.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.63e-05/0.2792, allocations: 92.08 kB / 434.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.276e-06/0.2792, allocations: 0 / 434.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.2793, allocations: 17.72 kB / 434.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2794, allocations: 314.8 kB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.86e-05/0.2795, allocations: 11.94 kB / 434.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.035e-05/0.2795, allocations: 25.7 kB / 434.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.654e-05/0.2796, allocations: 25.7 kB / 434.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.2796, allocations: 7.938 kB / 434.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001068/0.2797, allocations: 53.58 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.2797, allocations: 10.62 kB / 434.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2797, allocations: 0 / 434.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.2797, allocations: 4 kB / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.595e-05/0.2798, allocations: 4 kB / 434.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.2798, allocations: 0 / 434.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.692e-05/0.2798, allocations: 3.984 kB / 434.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.2798, allocations: 7.984 kB / 434.8 MB, free: 2.945 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.824e-05/0.2799, allocations: 117.8 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.28, allocations: 45.59 kB / 434.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.913e-05/0.28, allocations: 15.78 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.28, allocations: 0 / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.28, allocations: 4 kB / 435 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.28, allocations: 7.922 kB / 435 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.2802, allocations: 140.6 kB / 435.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2802, allocations: 0 / 435.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-05/0.2803, allocations: 7.984 kB / 435.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.217e-06/0.2803, allocations: 4 kB / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.2803, allocations: 0 / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.2803, allocations: 0 / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2803, allocations: 4 kB / 435.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001751/0.2804, allocations: 152.3 kB / 435.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.2805, allocations: 19.94 kB / 435.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.2805, allocations: 0 / 435.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.79e-05/0.2805, allocations: 4 kB / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.183e-05/0.2806, allocations: 8.016 kB / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.2806, allocations: 0 / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.169e-05/0.2807, allocations: 103.3 kB / 435.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2807, allocations: 0 / 435.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002138/0.2809, allocations: 4 kB / 435.4 MB, free: 2.242 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004998/0.2814, allocations: 0.6898 MB / 436.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.2815, allocations: 23.92 kB / 436.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2815, allocations: 3.938 kB / 436.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.281e-05/0.2815, allocations: 4 kB / 436.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.2819, allocations: 16.02 kB / 436.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.2831, allocations: 1.268 MB / 437.4 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.2835, allocations: 0.6885 MB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.133e-05/0.2835, allocations: 0 / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.2835, allocations: 15.44 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2835, allocations: 4.031 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02785/0.3114, allocations: 1.481 MB / 439.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.33, allocations: 6.406 kB / 439.6 MB, free: 14.03 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:time,step.startTime,sample1.y,step.y,periodicClock.factor,periodicClock.resolution [Calling sys.exit(0), Time elapsed: 13.841060400998686]