Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.001155/0.001155, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009834/0.0009834, allocations: 174.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9519/0.9519, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.163e-05/2.339e-05, allocations: 2.281 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002068/0.002092, allocations: 1.536 MB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003474/0.002439, allocations: 143.4 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.634e-05/0.002525, allocations: 3.938 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.501e-05/0.00257, allocations: 3.938 kB / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.002719, allocations: 15.86 kB / 326.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.002982, allocations: 35.91 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.003096, allocations: 27.92 kB / 326.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.003217, allocations: 19.91 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.327e-05/0.00327, allocations: 23.92 kB / 326.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.34e-05/0.003313, allocations: 4 kB / 326.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.00334, allocations: 4 kB / 326.4 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.073e-05/0.003351, allocations: 4 kB / 326.4 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.526e-05/0.003406, allocations: 15.92 kB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.786e-05/0.003434, allocations: 11.92 kB / 326.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.003554, allocations: 43.88 kB / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.003556, allocations: 0 / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.003557, allocations: 0 / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.003563, allocations: 0 / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004058/0.003968, allocations: 293.3 kB / 326.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.004013, allocations: 16.03 kB / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.475e-05/0.004048, allocations: 34.75 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.578e-05/0.004074, allocations: 12.83 kB / 326.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.004287, allocations: 140.3 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.004298, allocations: 4.375 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.004309, allocations: 8.312 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.004569, allocations: 113.6 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.004576, allocations: 192 / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.004583, allocations: 4.312 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.00459, allocations: 12.11 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.626e-05/0.004636, allocations: 19.92 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002516/0.004888, allocations: 224.9 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.005036, allocations: 61.14 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.846e-05/0.005074, allocations: 25.77 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.005092, allocations: 4 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.005109, allocations: 38.5 kB / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.342e-06/0.00511, allocations: 0 / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001669/0.005277, allocations: 77.56 kB / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.005324, allocations: 77.11 kB / 327.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.188e-05/0.005406, allocations: 134.1 kB / 327.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.005417, allocations: 33.69 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.77e-05/0.005455, allocations: 84.08 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.887e-06/0.005464, allocations: 7.953 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.005487, allocations: 13.84 kB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.005564, allocations: 318.8 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.924e-05/0.005583, allocations: 11.98 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.367e-05/0.005597, allocations: 4 kB / 328.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.256e-05/0.00563, allocations: 16.84 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.005632, allocations: 0 / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.492e-05/0.005687, allocations: 49.62 kB / 328.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.0057, allocations: 4 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.005705, allocations: 4.094 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.005717, allocations: 0 / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.433e-05/0.005751, allocations: 11.92 kB / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.005756, allocations: 0 / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.005775, allocations: 4 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.00578, allocations: 0 / 328.3 MB, free: 12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 6.417e-05/0.005844, allocations: 113.8 kB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.005888, allocations: 53.58 kB / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.859e-05/0.005916, allocations: 8.344 kB / 328.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.005918, allocations: 4 kB / 328.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.005923, allocations: 7.922 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.005927, allocations: 3.938 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.006037, allocations: 140.7 kB / 328.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.006038, allocations: 0 / 328.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.8e-05/0.006066, allocations: 11.98 kB / 328.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.006069, allocations: 3.938 kB / 328.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.006079, allocations: 4 kB / 328.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.00608, allocations: 0 / 328.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.006083, allocations: 7.938 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.006188, allocations: 164.3 kB / 328.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.832e-05/0.006217, allocations: 20.17 kB / 328.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.006227, allocations: 0 / 328.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.051e-05/0.006257, allocations: 7.984 kB / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.006288, allocations: 3.984 kB / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.006291, allocations: 0 / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.988e-05/0.006341, allocations: 105.9 kB / 328.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006341, allocations: 0 / 328.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001399/0.006481, allocations: 4 kB / 328.9 MB, free: 11.27 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0003178/0.006799, allocations: 0.7093 MB / 329.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.695e-05/0.006896, allocations: 15.98 kB / 329.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.006898, allocations: 0 / 329.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.073e-05/0.006919, allocations: 15.94 kB / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.007192, allocations: 16.02 kB / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008004/0.007992, allocations: 1.259 MB / 330.9 MB, free: 9.141 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.461e-05/0.008047, allocations: 75.52 kB / 331 MB, free: 9.047 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.736e-05/0.008064, allocations: 8 kB / 331 MB, free: 9.039 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.775e-05/0.008102, allocations: 12.5 kB / 331 MB, free: 9.027 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.008103, allocations: 0 / 331 MB, free: 9.027 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.02742, allocations: 2.121 MB / 333.2 MB, free: 7.027 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.763/6.791, allocations: 7.094 kB / 333.2 MB, free: 7.023 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 8.566675092093647]