Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001301/0.001301, 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.001475/0.001475, allocations: 213.6 kB / 23.73 MB, free: 4.16 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.516/1.516, allocations: 230.5 MB / 257.4 MB, free: 7.793 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.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 59.91 kB / 377.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3241, allocations: 53.41 MB / 431.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.00302/0.3271, allocations: 1.584 MB / 432.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.3282, allocations: 0.5026 MB / 433.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.8e-05/0.3283, allocations: 7.938 kB / 433.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.882e-05/0.3284, allocations: 3.938 kB / 433.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.3285, allocations: 15.84 kB / 433.3 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.3288, allocations: 62.95 kB / 433.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.329, allocations: 47.84 kB / 433.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.3291, allocations: 20.09 kB / 433.4 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.3292, allocations: 31.81 kB / 433.4 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.747e-05/0.3292, allocations: 23.92 kB / 433.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.3293, allocations: 4 kB / 433.4 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.116e-05/0.3293, allocations: 11.92 kB / 433.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.259e-05/0.3294, allocations: 11.98 kB / 433.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.898e-05/0.3294, allocations: 23.8 kB / 433.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.3296, allocations: 63.12 kB / 433.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3296, allocations: 0 / 433.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3296, allocations: 0 / 433.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.3296, allocations: 0 / 433.6 MB, free: 4.066 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004827/0.33, allocations: 306.9 kB / 433.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.3301, allocations: 15.98 kB / 433.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.055e-05/0.3301, allocations: 38.75 kB / 433.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.3303, allocations: 16.88 kB / 433.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.3306, allocations: 154.2 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3306, allocations: 4.125 kB / 434.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.3306, allocations: 4 kB / 434.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.3309, allocations: 117.9 kB / 434.2 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3309, allocations: 3.984 kB / 434.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.3309, allocations: 0 / 434.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3309, allocations: 0 / 434.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.78e-05/0.331, allocations: 23.92 kB / 434.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003456/0.3313, allocations: 241.7 kB / 434.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.3315, allocations: 67.73 kB / 434.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.128e-05/0.3315, allocations: 38.62 kB / 434.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.3316, allocations: 0 / 434.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.3316, allocations: 42.5 kB / 434.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.3316, allocations: 0 / 434.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002816/0.3319, allocations: 85.5 kB / 434.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.169e-05/0.332, allocations: 106.8 kB / 434.8 MB, free: 2.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.3321, allocations: 149.7 kB / 434.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.3321, allocations: 26.08 kB / 435 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.063e-05/0.3322, allocations: 96.12 kB / 435.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.29e-05/0.3322, allocations: 0 / 435.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.994e-05/0.3322, allocations: 21.67 kB / 435.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3324, allocations: 322.8 kB / 435.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.997e-05/0.3324, allocations: 4 kB / 435.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.793e-05/0.3325, allocations: 39.36 kB / 435.4 MB, free: 1.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.3326, allocations: 51.36 kB / 435.5 MB, free: 1.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3326, allocations: 0 / 435.5 MB, free: 1.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001366/0.3327, allocations: 69.61 kB / 435.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3327, allocations: 7.938 kB / 435.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.3327, allocations: 4 kB / 435.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.3328, allocations: 0 / 435.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.771e-05/0.3328, allocations: 11.98 kB / 435.6 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3328, allocations: 7.922 kB / 435.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.378e-05/0.3329, allocations: 8.125 kB / 435.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.3329, allocations: 0 / 435.6 MB, free: 1.754 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001023/0.333, allocations: 122.7 kB / 435.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-05/0.3331, allocations: 53.59 kB / 435.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.629e-05/0.3331, allocations: 11.97 kB / 435.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.3331, allocations: 3.984 kB / 435.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3331, allocations: 7.938 kB / 435.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3331, allocations: 0 / 435.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.3333, allocations: 144.7 kB / 435.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3333, allocations: 4.062 kB / 435.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.89e-05/0.3334, allocations: 15.92 kB / 436 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3334, allocations: 0 / 436 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.453e-06/0.3334, allocations: 0 / 436 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3334, allocations: 7.938 kB / 436 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3334, allocations: 3.938 kB / 436 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.3336, allocations: 177.2 kB / 436.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.3337, allocations: 15.94 kB / 436.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.3337, allocations: 0 / 436.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.962e-05/0.3338, allocations: 8 kB / 436.2 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.833e-05/0.3338, allocations: 7.922 kB / 436.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.3338, allocations: 7.938 kB / 436.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.425e-05/0.3339, allocations: 114.6 kB / 436.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3339, allocations: 0 / 436.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002231/0.3341, allocations: 4 kB / 436.3 MB, free: 0.9766 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.00052/0.3346, allocations: 0.6985 MB / 437 MB, free: 252 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001504/0.3348, allocations: 39.92 kB / 437 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3348, allocations: 0 / 437 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.765e-05/0.3348, allocations: 11.98 kB / 437 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.3352, allocations: 28.08 kB / 437.1 MB, free: 172 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.3366, allocations: 1.409 MB / 438.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.793e-05/0.3367, allocations: 83.33 kB / 438.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.651e-05/0.3368, allocations: 3.984 kB / 438.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.3368, allocations: 15.44 kB / 438.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3368, allocations: 0 / 438.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/0.3676, allocations: 2.256 MB / 440.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.19, allocations: 3 kB / 440.8 MB, free: 12.39 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.7247474049218]