Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.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.001524/0.001524, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.00157/0.00157, allocations: 185.6 kB / 24.49 MB, free: 3.961 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.368/1.368, allocations: 225.7 MB / 253.3 MB, free: 12.88 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.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 39.94 kB / 371.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2369, allocations: 52.18 MB / 423.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.00268/0.2396, allocations: 1.431 MB / 424.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001814/0.2397, allocations: 31.91 kB / 424.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.261e-05/0.2398, allocations: 11.88 kB / 424.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.942e-05/0.2398, allocations: 0 / 424.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.903e-05/0.2399, allocations: 3.938 kB / 424.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.2401, allocations: 23.97 kB / 424.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.742e-05/0.2402, allocations: 23.92 kB / 424.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.958e-05/0.2403, allocations: 8 kB / 424.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.26e-05/0.2403, allocations: 15.92 kB / 424.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.585e-05/0.2404, allocations: 15.92 kB / 424.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.2404, allocations: 8 kB / 424.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.767e-06/0.2404, allocations: 0 / 424.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.224e-05/0.2404, allocations: 11.98 kB / 424.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.431e-05/0.2405, allocations: 3.938 kB / 424.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.2406, allocations: 27.91 kB / 425 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2406, allocations: 0 / 425 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2406, allocations: 0 / 425 MB, free: 12.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.2406, allocations: 0 / 425 MB, free: 12.81 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.0004343/0.241, allocations: 276.5 kB / 425.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2411, allocations: 8.031 kB / 425.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.606e-05/0.2411, allocations: 8.188 kB / 425.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.091e-05/0.2411, allocations: 34.75 kB / 425.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.533e-05/0.2411, allocations: 0.9375 kB / 425.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.2414, allocations: 130.4 kB / 425.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.2414, allocations: 384 / 425.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.2414, allocations: 4.375 kB / 425.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003347/0.2417, allocations: 115.6 kB / 425.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.2417, allocations: 0 / 425.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.2417, allocations: 0 / 425.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2418, allocations: 4 kB / 425.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000103/0.2419, allocations: 23.97 kB / 425.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001324/0.242, allocations: 124.8 kB / 425.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.2421, allocations: 50.5 kB / 425.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.668e-05/0.2422, allocations: 24.92 kB / 425.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.2422, allocations: 0 / 425.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.2422, allocations: 42.48 kB / 425.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.42e-07/0.2422, allocations: 0 / 425.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002449/0.2425, allocations: 73.59 kB / 425.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.2425, allocations: 55.41 kB / 425.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.996e-05/0.2426, allocations: 113.8 kB / 426 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.2426, allocations: 29.7 kB / 426.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.963e-05/0.2427, allocations: 80.14 kB / 426.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.2427, allocations: 3.953 kB / 426.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.379e-05/0.2427, allocations: 21.66 kB / 426.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.2428, allocations: 322.8 kB / 426.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.374e-05/0.2429, allocations: 4 kB / 426.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.174e-05/0.2429, allocations: 31.38 kB / 426.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.744e-05/0.2429, allocations: 39.38 kB / 426.5 MB, free: 11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2429, allocations: 0 / 426.5 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.137e-05/0.243, allocations: 57.62 kB / 426.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.243, allocations: 7.938 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.243, allocations: 4 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.2431, allocations: 0 / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.448e-05/0.2431, allocations: 11.92 kB / 426.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.2431, allocations: 0 / 426.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.155e-05/0.2431, allocations: 12.12 kB / 426.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.2432, allocations: 3.984 kB / 426.6 MB, free: 10.9 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 7.732e-05/0.2432, allocations: 109.8 kB / 426.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.2434, allocations: 69.56 kB / 426.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.142e-05/0.2434, allocations: 3.688 kB / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2434, allocations: 4 kB / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2434, allocations: 0 / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2434, allocations: 3.938 kB / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.951e-05/0.2435, allocations: 124.8 kB / 427 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.2435, allocations: 0 / 427 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.974e-05/0.2435, allocations: 8 kB / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.2435, allocations: 3.938 kB / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.2435, allocations: 0 / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.2435, allocations: 0 / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2435, allocations: 3.984 kB / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.2437, allocations: 85.11 kB / 427 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.301e-05/0.2437, allocations: 12.27 kB / 427.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.2437, allocations: 4 kB / 427.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.8e-05/0.2437, allocations: 4 kB / 427.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.043e-06/0.2437, allocations: 0 / 427.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.2437, allocations: 4 kB / 427.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.746e-05/0.2438, allocations: 91.27 kB / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2438, allocations: 0 / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001779/0.244, allocations: 7.938 kB / 427.2 MB, free: 10.29 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.0005323/0.2445, allocations: 0.6397 MB / 427.8 MB, free: 9.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001198/0.2446, allocations: 36.25 kB / 427.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2446, allocations: 0 / 427.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.91e-07/0.2446, allocations: 0 / 427.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.2449, allocations: 30.16 kB / 427.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.2459, allocations: 1.178 MB / 429.1 MB, free: 8.285 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.248e-05/0.2459, allocations: 67.2 kB / 429.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.197e-05/0.2459, allocations: 0 / 429.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.381e-05/0.246, allocations: 11.44 kB / 429.1 MB, free: 8.188 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.246, allocations: 0 / 429.1 MB, free: 8.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02177/0.2677, allocations: 1.473 MB / 430.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.81, allocations: 6.812 kB / 430.6 MB, free: 6.855 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.195960197015665]