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.001239/0.001239, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.001363/0.001363, allocations: 212.7 kB / 23.73 MB, free: 4.531 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.391/1.391, 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.001444/0.001444, allocations: 47.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2645, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002735/0.2672, allocations: 1.518 MB / 432.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003545/0.2676, allocations: 131.5 kB / 432.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.845e-05/0.2677, allocations: 4 kB / 432.7 MB, free: 5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.151e-05/0.2677, allocations: 7.875 kB / 432.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.2678, allocations: 15.84 kB / 432.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.268, allocations: 35.86 kB / 432.8 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.462e-05/0.2681, allocations: 27.92 kB / 432.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.577e-05/0.2682, allocations: 15.97 kB / 432.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.764e-05/0.2682, allocations: 7.938 kB / 432.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.663e-05/0.2683, allocations: 11.94 kB / 432.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.2683, allocations: 4 kB / 432.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.025e-06/0.2683, allocations: 0 / 432.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.319e-05/0.2683, allocations: 15.92 kB / 432.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.574e-05/0.2684, allocations: 15.88 kB / 432.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001045/0.2685, allocations: 45.44 kB / 432.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2685, allocations: 0 / 432.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2685, allocations: 0 / 432.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.2685, allocations: 0 / 432.9 MB, free: 4.801 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.0003966/0.2689, allocations: 286.1 kB / 433.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2689, allocations: 8.031 kB / 433.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.628e-05/0.2689, allocations: 38.75 kB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.316e-05/0.269, allocations: 8.891 kB / 433.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.2692, allocations: 130.4 kB / 433.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-06/0.2692, allocations: 384 / 433.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.2692, allocations: 8.375 kB / 433.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.2694, allocations: 93.59 kB / 433.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.2694, allocations: 3.938 kB / 433.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.2694, allocations: 11.98 kB / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2694, allocations: 3.938 kB / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.348e-05/0.2695, allocations: 12 kB / 433.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002881/0.2698, allocations: 224.9 kB / 433.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.437e-05/0.2699, allocations: 53.08 kB / 433.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.479e-05/0.2699, allocations: 13.78 kB / 433.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.2699, allocations: 0 / 433.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.27, allocations: 38.55 kB / 433.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.27, allocations: 7.938 kB / 433.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002152/0.2702, allocations: 57.69 kB / 433.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.2702, allocations: 81.05 kB / 434 MB, free: 3.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.2704, allocations: 144.3 kB / 434.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.2704, allocations: 25.7 kB / 434.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/0.2704, allocations: 80.14 kB / 434.2 MB, free: 3.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.278e-06/0.2704, allocations: 4 kB / 434.2 MB, free: 3.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.844e-05/0.2705, allocations: 13.72 kB / 434.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2706, allocations: 319.1 kB / 434.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.606e-05/0.2706, allocations: 15.92 kB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.514e-05/0.2707, allocations: 13.72 kB / 434.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.291e-05/0.2707, allocations: 29.7 kB / 434.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2707, allocations: 3.938 kB / 434.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001075/0.2708, allocations: 61.56 kB / 434.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.2709, allocations: 4.125 kB / 434.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2709, allocations: 4 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.2709, allocations: 8 kB / 434.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.679e-05/0.2709, allocations: 4 kB / 434.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.271, allocations: 3.984 kB / 434.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.433e-05/0.271, allocations: 0 / 434.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.271, allocations: 4 kB / 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.223e-05/0.2711, allocations: 121.7 kB / 434.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.014e-05/0.2711, allocations: 41.66 kB / 434.9 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/0.2712, allocations: 11.75 kB / 434.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2712, allocations: 8.031 kB / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.2712, allocations: 0 / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.2712, allocations: 0 / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.2713, allocations: 148.5 kB / 435 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2713, allocations: 0 / 435 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.452e-05/0.2714, allocations: 4 kB / 435 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.2714, allocations: 4 kB / 435 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.2714, allocations: 0 / 435 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2714, allocations: 3.984 kB / 435 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2714, allocations: 0 / 435 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001654/0.2716, allocations: 164.3 kB / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.054e-05/0.2716, allocations: 11.94 kB / 435.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.2716, allocations: 0 / 435.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.826e-05/0.2717, allocations: 4 kB / 435.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.557e-05/0.2717, allocations: 0 / 435.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.2717, allocations: 0 / 435.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.927e-05/0.2718, allocations: 107.2 kB / 435.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2718, allocations: 0 / 435.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002078/0.272, allocations: 4 kB / 435.3 MB, free: 2.078 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.0004569/0.2724, allocations: 0.6976 MB / 436 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.2725, allocations: 19.98 kB / 436 MB, free: 1.332 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2725, allocations: 0 / 436 MB, free: 1.332 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.243e-05/0.2726, allocations: 7.938 kB / 436.1 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.000297/0.2729, allocations: 22.7 kB / 436.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.2741, allocations: 1.264 MB / 437.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.229e-05/0.2742, allocations: 67.34 kB / 437.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.424e-05/0.2742, allocations: 8.078 kB / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.2742, allocations: 15.42 kB / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2742, allocations: 3.938 kB / 437.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.3019, allocations: 1.926 MB / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.53, allocations: 6.969 kB / 439.4 MB, free: 14.04 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: 12.862771016982151]