Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001347/0.001347, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001675/0.001675, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 230.5 MB / 257.4 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 60.14 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2764, allocations: 53.42 MB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003059/0.2795, allocations: 1.511 MB / 432.7 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004315/0.2799, allocations: 131.6 kB / 432.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.412e-05/0.28, allocations: 15.88 kB / 432.8 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.863e-05/0.28, allocations: 3.938 kB / 432.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.2802, allocations: 3.938 kB / 432.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.2804, allocations: 43.89 kB / 432.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.969e-05/0.2805, allocations: 23.92 kB / 432.9 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.421e-05/0.2806, allocations: 8 kB / 432.9 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.268e-05/0.2807, allocations: 11.94 kB / 432.9 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.112e-05/0.2807, allocations: 11.92 kB / 432.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.2807, allocations: 7.938 kB / 432.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.125e-05/0.2807, allocations: 0 / 432.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.154e-05/0.2808, allocations: 11.94 kB / 432.9 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.659e-05/0.2808, allocations: 19.86 kB / 432.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.2809, allocations: 45.45 kB / 433 MB, free: 4.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2809, allocations: 0 / 433 MB, free: 4.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2809, allocations: 0 / 433 MB, free: 4.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.2809, allocations: 0 / 433 MB, free: 4.602 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.0004402/0.2814, allocations: 290.1 kB / 433.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.2814, allocations: 11.98 kB / 433.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.932e-05/0.2815, allocations: 34.73 kB / 433.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.582e-05/0.2815, allocations: 8.891 kB / 433.3 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.2817, allocations: 138.4 kB / 433.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-06/0.2817, allocations: 384 / 433.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.2817, allocations: 8.375 kB / 433.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.282, allocations: 89.61 kB / 433.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.282, allocations: 7.875 kB / 433.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-06/0.282, allocations: 0 / 433.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.282, allocations: 4 kB / 433.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.763e-05/0.2821, allocations: 15.98 kB / 433.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003004/0.2824, allocations: 232.8 kB / 433.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.937e-05/0.2825, allocations: 45.16 kB / 433.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.749e-05/0.2825, allocations: 21.7 kB / 433.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.2825, allocations: 0 / 433.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.2826, allocations: 34.56 kB / 433.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.2826, allocations: 0 / 433.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002235/0.2828, allocations: 65.86 kB / 434 MB, free: 3.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.2828, allocations: 81.11 kB / 434 MB, free: 3.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.283, allocations: 140.9 kB / 434.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.283, allocations: 25.7 kB / 434.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.28e-05/0.283, allocations: 80.14 kB / 434.3 MB, free: 3.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.065e-06/0.283, allocations: 0 / 434.3 MB, free: 3.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.638e-05/0.2831, allocations: 21.7 kB / 434.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.2832, allocations: 318.8 kB / 434.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.522e-05/0.2833, allocations: 4 kB / 434.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.913e-05/0.2833, allocations: 17.7 kB / 434.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.543e-05/0.2834, allocations: 37.7 kB / 434.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.2834, allocations: 3.938 kB / 434.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001084/0.2835, allocations: 53.58 kB / 434.7 MB, free: 2.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2835, allocations: 4 kB / 434.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2835, allocations: 0 / 434.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.2835, allocations: 3.938 kB / 434.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.714e-05/0.2836, allocations: 11.98 kB / 434.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2836, allocations: 8.062 kB / 434.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.729e-05/0.2836, allocations: 3.984 kB / 434.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.854e-06/0.2836, allocations: 4 kB / 434.8 MB, free: 2.57 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.745e-05/0.2837, allocations: 113.8 kB / 434.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.609e-05/0.2838, allocations: 41.64 kB / 434.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.236e-05/0.2838, allocations: 11.77 kB / 434.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2838, allocations: 0 / 434.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.2838, allocations: 7.938 kB / 434.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2838, allocations: 0 / 434.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.284, allocations: 144.6 kB / 435.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.284, allocations: 4.031 kB / 435.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.942e-05/0.2841, allocations: 11.94 kB / 435.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2841, allocations: 0 / 435.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.2841, allocations: 4 kB / 435.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2841, allocations: 0 / 435.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2841, allocations: 0 / 435.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001826/0.2843, allocations: 160.3 kB / 435.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.193e-05/0.2843, allocations: 7.953 kB / 435.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.2843, allocations: 0 / 435.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.988e-05/0.2844, allocations: 12.02 kB / 435.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.972e-05/0.2844, allocations: 0 / 435.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.2844, allocations: 0 / 435.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.726e-05/0.2845, allocations: 103.3 kB / 435.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2845, allocations: 0 / 435.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002142/0.2847, allocations: 7.938 kB / 435.4 MB, free: 1.875 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.0005116/0.2852, allocations: 0.6898 MB / 436.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001295/0.2853, allocations: 27.95 kB / 436.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2853, allocations: 0 / 436.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.199e-05/0.2854, allocations: 4 kB / 436.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.2857, allocations: 21.58 kB / 436.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.287, allocations: 1.268 MB / 437.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.236e-05/0.2871, allocations: 75.64 kB / 437.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.199e-05/0.2871, allocations: 0 / 437.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.405e-05/0.2871, allocations: 15.44 kB / 437.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2871, allocations: 0 / 437.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.3162, allocations: 1.91 MB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.97, allocations: 10.97 kB / 439.4 MB, free: 13.83 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.44775222800672]