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.00126/0.00126, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.001391/0.001391, allocations: 204.3 kB / 23.72 MB, free: 4.418 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.39/1.39, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001863/0.001863, allocations: 47.94 kB / 377.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2592, allocations: 53.36 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002915/0.2621, allocations: 1.522 MB / 432.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003796/0.2625, allocations: 135.5 kB / 432.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.962e-05/0.2626, allocations: 0 / 432.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.588e-05/0.2626, allocations: 3.938 kB / 432.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.2627, allocations: 11.88 kB / 432.7 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.263, allocations: 39.83 kB / 432.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.907e-05/0.263, allocations: 23.94 kB / 432.8 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.918e-05/0.2631, allocations: 15.98 kB / 432.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.213e-05/0.2632, allocations: 11.88 kB / 432.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.128e-05/0.2632, allocations: 15.92 kB / 432.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.2632, allocations: 0 / 432.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.121e-05/0.2632, allocations: 4 kB / 432.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.6e-05/0.2633, allocations: 15.92 kB / 432.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.2633, allocations: 15.86 kB / 432.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.2634, allocations: 40.2 kB / 432.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2634, allocations: 0 / 432.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2634, allocations: 0 / 432.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.2634, allocations: 0 / 432.9 MB, free: 4.793 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.0004472/0.2639, allocations: 290.1 kB / 433.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.2639, allocations: 8.031 kB / 433.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.285e-05/0.264, allocations: 30.75 kB / 433.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.562e-05/0.264, allocations: 8.891 kB / 433.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.2642, allocations: 142.3 kB / 433.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.46e-06/0.2642, allocations: 384 / 433.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.2642, allocations: 384 / 433.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.2645, allocations: 97.67 kB / 433.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.2645, allocations: 7.875 kB / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.2645, allocations: 0 / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.2645, allocations: 3.984 kB / 433.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.228e-05/0.2646, allocations: 15.98 kB / 433.5 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002998/0.2649, allocations: 228.9 kB / 433.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.164e-05/0.2649, allocations: 41.09 kB / 433.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.021e-05/0.265, allocations: 29.7 kB / 433.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.265, allocations: 4 kB / 433.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.265, allocations: 30.56 kB / 433.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.265, allocations: 0 / 433.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002131/0.2653, allocations: 61.61 kB / 433.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.2653, allocations: 85.05 kB / 434 MB, free: 3.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.2655, allocations: 136.3 kB / 434.1 MB, free: 3.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.2655, allocations: 25.7 kB / 434.1 MB, free: 3.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.276e-05/0.2655, allocations: 88.14 kB / 434.2 MB, free: 3.277 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.974e-06/0.2655, allocations: 256 / 434.2 MB, free: 3.277 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.292e-05/0.2656, allocations: 21.72 kB / 434.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.2657, allocations: 314.8 kB / 434.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.59e-05/0.2658, allocations: 8 kB / 434.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.068e-05/0.2658, allocations: 25.64 kB / 434.6 MB, free: 2.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.545e-05/0.2659, allocations: 25.7 kB / 434.6 MB, free: 2.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2659, allocations: 3.938 kB / 434.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001079/0.266, allocations: 57.64 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.266, allocations: 8 kB / 434.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.266, allocations: 0 / 434.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.266, allocations: 0 / 434.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.675e-05/0.2661, allocations: 4 kB / 434.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.2661, allocations: 3.984 kB / 434.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.596e-05/0.2661, allocations: 4 kB / 434.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-06/0.2661, allocations: 0 / 434.7 MB, free: 2.777 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 9.273e-05/0.2662, allocations: 121.7 kB / 434.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.2663, allocations: 49.7 kB / 434.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.2663, allocations: 11.77 kB / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.2663, allocations: 0 / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2663, allocations: 4 kB / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.2663, allocations: 0 / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.2665, allocations: 144.6 kB / 435 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2665, allocations: 0 / 435 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.688e-05/0.2665, allocations: 7.984 kB / 435 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2665, allocations: 0 / 435 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.2665, allocations: 3.938 kB / 435 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2665, allocations: 4 kB / 435 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2665, allocations: 4.031 kB / 435 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001677/0.2667, allocations: 152.3 kB / 435.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.843e-05/0.2667, allocations: 19.94 kB / 435.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.2667, allocations: 0 / 435.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.484e-05/0.2668, allocations: 0 / 435.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.858e-05/0.2668, allocations: 7.984 kB / 435.2 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.2668, allocations: 0 / 435.2 MB, free: 2.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.647e-05/0.2669, allocations: 103.3 kB / 435.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2669, allocations: 0 / 435.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.2671, allocations: 8.031 kB / 435.3 MB, free: 2.07 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.0004862/0.2676, allocations: 0.6897 MB / 436 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.2677, allocations: 23.98 kB / 436 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2677, allocations: 0 / 436 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.046e-05/0.2677, allocations: 4 kB / 436 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.268, allocations: 26.17 kB / 436.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.2693, allocations: 1.264 MB / 437.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.272e-05/0.2694, allocations: 71.33 kB / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.335e-05/0.2694, allocations: 0 / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.127e-05/0.2695, allocations: 15.44 kB / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2695, allocations: 0 / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03351/0.303, allocations: 1.916 MB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.86, allocations: 11.12 kB / 439.3 MB, free: 14.05 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 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.mat","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.185963353142142]