Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.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.001224/0.001224, allocations: 112.4 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.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.001264/0.001264, allocations: 180.5 kB / 23.72 MB, free: 4.699 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.478/1.478, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.IntegerSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 47.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.307, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.003652/0.3106, allocations: 1.911 MB / 424.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.3127, allocations: 1.18 MB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.3129, allocations: 7.938 kB / 425.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003364/0.3132, allocations: 63.66 kB / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002895/0.3135, allocations: 87.66 kB / 425.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008317/0.3143, allocations: 270 kB / 426.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002903/0.3146, allocations: 171.5 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.3147, allocations: 25.72 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.3149, allocations: 79.64 kB / 426.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.315, allocations: 79.67 kB / 426.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.315, allocations: 8 kB / 426.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.3152, allocations: 71.94 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.862e-05/0.3153, allocations: 59.75 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.235e-05/0.3154, allocations: 67.5 kB / 426.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003932/0.3158, allocations: 239.4 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3158, allocations: 0 / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3158, allocations: 4 kB / 426.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.3158, allocations: 4 kB / 426.9 MB, free: 10.31 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008357/0.3167, allocations: 478.5 kB / 427.4 MB, free: 9.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3167, allocations: 8.031 kB / 427.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.659e-05/0.3168, allocations: 42.73 kB / 427.4 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.404e-05/0.3168, allocations: 20.8 kB / 427.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/0.3173, allocations: 229.5 kB / 427.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.413e-05/0.3173, allocations: 8.375 kB / 427.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.3174, allocations: 7.938 kB / 427.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.3178, allocations: 155.5 kB / 427.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3178, allocations: 4 kB / 427.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.3178, allocations: 11.94 kB / 427.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.3178, allocations: 7.984 kB / 427.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.3179, allocations: 31.97 kB / 427.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006329/0.3186, allocations: 353.4 kB / 428.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.3188, allocations: 115.9 kB / 428.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.185e-05/0.3189, allocations: 42.56 kB / 428.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.3189, allocations: 4.062 kB / 428.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.3191, allocations: 87.31 kB / 428.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.673e-06/0.3191, allocations: 0 / 428.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004077/0.3196, allocations: 149.4 kB / 428.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.3197, allocations: 166.4 kB / 428.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003566/0.32, allocations: 333.8 kB / 429.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.3201, allocations: 29.7 kB / 429.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.3202, allocations: 124.1 kB / 429.3 MB, free: 7.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.3202, allocations: 19.89 kB / 429.3 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.134e-05/0.3202, allocations: 25.67 kB / 429.3 MB, free: 7.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.3204, allocations: 338.8 kB / 429.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.934e-05/0.3205, allocations: 19.98 kB / 429.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.3206, allocations: 86.84 kB / 429.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.3207, allocations: 84.22 kB / 429.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3207, allocations: 0 / 429.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002367/0.321, allocations: 125.5 kB / 430 MB, free: 6.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.321, allocations: 4 kB / 430 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.321, allocations: 4 kB / 430 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.321, allocations: 0 / 430 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.3212, allocations: 19.98 kB / 430 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3212, allocations: 0 / 430 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.353e-05/0.3212, allocations: 20.27 kB / 430 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.3213, allocations: 8 kB / 430 MB, free: 6.898 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,superSample1.y,superSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001615/0.3214, allocations: 161.7 kB / 430.2 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.929e-05/0.3215, allocations: 65.5 kB / 430.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002682/0.3218, allocations: 119.3 kB / 430.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.3218, allocations: 4 kB / 430.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3218, allocations: 0 / 430.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.3218, allocations: 8 kB / 430.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.322, allocations: 212.6 kB / 430.6 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.322, allocations: 4 kB / 430.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.538e-05/0.3221, allocations: 11.98 kB / 430.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3221, allocations: 0 / 430.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.3221, allocations: 4 kB / 430.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3221, allocations: 3.938 kB / 430.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3221, allocations: 0 / 430.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.3224, allocations: 174.5 kB / 430.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.473e-05/0.3225, allocations: 43.77 kB / 430.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.338e-05/0.3225, allocations: 4 kB / 430.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.083e-05/0.3226, allocations: 0 / 430.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.306e-05/0.3226, allocations: 15.92 kB / 430.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.3227, allocations: 4 kB / 430.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.3229, allocations: 245.2 kB / 431.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3229, allocations: 0 / 431.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.3232, allocations: 36 kB / 431.1 MB, free: 5.711 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample1.y,sample1.y,superSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.002074/0.3253, allocations: 1.016 MB / 432.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002577/0.3255, allocations: 75.78 kB / 432.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3255, allocations: 0 / 432.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.339e-05/0.3256, allocations: 27.98 kB / 432.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.326, allocations: 72.78 kB / 432.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.3287, allocations: 2.194 MB / 434.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.3291, allocations: 0.7437 MB / 435.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.074e-05/0.3292, allocations: 29.48 kB / 435.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.3293, allocations: 59.41 kB / 435.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3293, allocations: 0 / 435.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.3609, allocations: 5.396 MB / 440.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.32, allocations: 2.234 kB / 440.7 MB, free: 12.18 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.95804e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.csv failed! Error: Could not read variable superSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.csv. Warning: Get data of variable superSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.955191448003461]