Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.001445/0.001445, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001381/0.001381, allocations: 211.5 kB / 23.73 MB, free: 4.387 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.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.742 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.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.92 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2727, allocations: 53.37 MB / 431.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003947/0.2767, allocations: 1.443 MB / 432.5 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002487/0.2769, allocations: 27.91 kB / 432.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.098e-05/0.277, allocations: 4 kB / 432.6 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.526e-05/0.277, allocations: 3.938 kB / 432.6 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.401e-05/0.2771, allocations: 11.88 kB / 432.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.2773, allocations: 23.97 kB / 432.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.2774, allocations: 27.86 kB / 432.6 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.2776, allocations: 8 kB / 432.6 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.358e-05/0.2776, allocations: 15.92 kB / 432.6 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.606e-05/0.2777, allocations: 11.92 kB / 432.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.2777, allocations: 4 kB / 432.7 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.2777, allocations: 4 kB / 432.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.2777, allocations: 4 kB / 432.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.128e-05/0.2777, allocations: 15.92 kB / 432.7 MB, free: 5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.2779, allocations: 33.58 kB / 432.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2779, allocations: 0 / 432.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2779, allocations: 0 / 432.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2779, allocations: 0 / 432.7 MB, free: 4.969 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005177/0.2784, allocations: 270.3 kB / 433 MB, free: 4.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.2784, allocations: 11.97 kB / 433 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.2785, allocations: 30.75 kB / 433 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/0.2785, allocations: 8.891 kB / 433 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.2788, allocations: 126.4 kB / 433.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.2788, allocations: 384 / 433.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.2789, allocations: 8.375 kB / 433.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004791/0.2793, allocations: 115.8 kB / 433.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.2794, allocations: 3.938 kB / 433.3 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.2794, allocations: 8 kB / 433.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2794, allocations: 0 / 433.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.2795, allocations: 19.97 kB / 433.3 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.2797, allocations: 132.7 kB / 433.4 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.2799, allocations: 54.48 kB / 433.5 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.28, allocations: 28.91 kB / 433.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.2801, allocations: 8 kB / 433.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.2801, allocations: 34.56 kB / 433.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.363e-06/0.2801, allocations: 0 / 433.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004833/0.2806, allocations: 85.53 kB / 433.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.008e-05/0.2806, allocations: 51.41 kB / 433.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.2808, allocations: 105.8 kB / 433.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.846e-05/0.2809, allocations: 25.7 kB / 433.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.65e-05/0.2809, allocations: 88.14 kB / 433.9 MB, free: 3.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.2809, allocations: 0 / 433.9 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.114e-05/0.281, allocations: 17.72 kB / 433.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.2811, allocations: 318.8 kB / 434.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.251e-05/0.2812, allocations: 8 kB / 434.2 MB, free: 3.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.746e-05/0.2812, allocations: 31.75 kB / 434.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.931e-05/0.2813, allocations: 43.36 kB / 434.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2813, allocations: 0 / 434.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001306/0.2814, allocations: 65.7 kB / 434.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.2814, allocations: 15.88 kB / 434.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2814, allocations: 0 / 434.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.2815, allocations: 4 kB / 434.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.404e-05/0.2815, allocations: 7.938 kB / 434.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2815, allocations: 4 kB / 434.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.81e-05/0.2816, allocations: 0 / 434.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.874e-06/0.2816, allocations: 4 kB / 434.4 MB, free: 3.043 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.0001163/0.2817, allocations: 113.8 kB / 434.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/0.2819, allocations: 69.56 kB / 434.6 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.874e-05/0.2819, allocations: 11.98 kB / 434.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2819, allocations: 4 kB / 434.6 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2819, allocations: 0 / 434.6 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2819, allocations: 3.938 kB / 434.6 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/0.2821, allocations: 124.8 kB / 434.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2821, allocations: 0 / 434.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.002e-05/0.2822, allocations: 8 kB / 434.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.2822, allocations: 3.938 kB / 434.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.2822, allocations: 0 / 434.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2822, allocations: 0 / 434.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.2822, allocations: 7.984 kB / 434.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002355/0.2824, allocations: 89.11 kB / 434.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.3e-05/0.2824, allocations: 3.953 kB / 434.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.2825, allocations: 11.94 kB / 434.9 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.257e-05/0.2825, allocations: 3.984 kB / 434.9 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-06/0.2825, allocations: 4 kB / 434.9 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.2825, allocations: 0 / 434.9 MB, free: 2.512 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.684e-05/0.2825, allocations: 79.28 kB / 434.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2825, allocations: 0 / 434.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001843/0.2827, allocations: 8 kB / 435 MB, free: 2.426 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.0005827/0.2833, allocations: 0.6442 MB / 435.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000131/0.2834, allocations: 43.91 kB / 435.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2834, allocations: 0 / 435.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.41e-07/0.2834, allocations: 7.875 kB / 435.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.2837, allocations: 30.64 kB / 435.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.2848, allocations: 1.189 MB / 436.9 MB, free: 396 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.757e-05/0.2849, allocations: 63.34 kB / 436.9 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.367e-05/0.2849, allocations: 4.25 kB / 436.9 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.285, allocations: 15.44 kB / 436.9 MB, free: 292 kB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.285, allocations: 0 / 436.9 MB, free: 292 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02796/0.3129, allocations: 1.879 MB / 438.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.87, allocations: 10.92 kB / 438.8 MB, free: 14.53 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.206491299904883]