Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.001392/0.001392, allocations: 112.7 kB / 20.43 MB, free: 1.453 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.001756/0.001756, allocations: 214.7 kB / 23.74 MB, free: 4.66 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.421/1.421, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 67.89 kB / 377.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.273, allocations: 53.4 MB / 431.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.00283/0.2759, allocations: 1.521 MB / 432.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008923/0.2768, allocations: 490.7 kB / 433.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.917e-05/0.2768, allocations: 3.938 kB / 433.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.843e-05/0.2769, allocations: 7.938 kB / 433.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.842e-05/0.2769, allocations: 7.922 kB / 433.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002741/0.2772, allocations: 35.84 kB / 433.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.903e-05/0.2773, allocations: 39.84 kB / 433.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.964e-05/0.2774, allocations: 12 kB / 433.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.2775, allocations: 23.92 kB / 433.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.735e-05/0.2776, allocations: 19.91 kB / 433.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.2776, allocations: 7.938 kB / 433.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.542e-05/0.2776, allocations: 4 kB / 433.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.702e-05/0.2776, allocations: 7.938 kB / 433.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.806e-05/0.2777, allocations: 15.94 kB / 433.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.2778, allocations: 52.11 kB / 433.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2778, allocations: 0 / 433.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2778, allocations: 0 / 433.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.2778, allocations: 0 / 433.4 MB, free: 4.48 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.0004178/0.2782, allocations: 274.2 kB / 433.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2783, allocations: 12.03 kB / 433.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.2783, allocations: 34.75 kB / 433.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.2784, allocations: 12.92 kB / 433.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.2787, allocations: 126.5 kB / 433.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.2787, allocations: 384 / 433.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.2787, allocations: 4.375 kB / 433.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003149/0.279, allocations: 119.3 kB / 434 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.279, allocations: 4 kB / 434 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.279, allocations: 0 / 434 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.279, allocations: 0 / 434 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.045e-05/0.2791, allocations: 19.98 kB / 434 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.2792, allocations: 132.7 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/0.2794, allocations: 54.55 kB / 434.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.847e-05/0.2795, allocations: 32.91 kB / 434.2 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.2795, allocations: 3.938 kB / 434.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.2795, allocations: 34.5 kB / 434.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.2795, allocations: 0 / 434.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002429/0.2797, allocations: 81.56 kB / 434.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.2798, allocations: 55.41 kB / 434.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.2799, allocations: 106.1 kB / 434.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2799, allocations: 29.7 kB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.28, allocations: 92.12 kB / 434.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.372e-06/0.28, allocations: 4.031 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.608e-05/0.28, allocations: 21.66 kB / 434.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2802, allocations: 314.8 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.272e-05/0.2802, allocations: 4 kB / 435 MB, free: 2.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.14e-05/0.2802, allocations: 27.42 kB / 435 MB, free: 2.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.905e-05/0.2803, allocations: 39.38 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.2803, allocations: 4 kB / 435 MB, free: 2.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.741e-05/0.2803, allocations: 61.52 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.2804, allocations: 8.125 kB / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2804, allocations: 0 / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.2804, allocations: 4 kB / 435.1 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.119e-05/0.2804, allocations: 4 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.2804, allocations: 0 / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.031e-05/0.2805, allocations: 7.938 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.2805, allocations: 4 kB / 435.1 MB, free: 2.562 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 9.411e-05/0.2806, allocations: 117.8 kB / 435.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.2807, allocations: 61.62 kB / 435.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.2807, allocations: 12 kB / 435.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2807, allocations: 3.984 kB / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.2807, allocations: 4 kB / 435.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.2807, allocations: 0 / 435.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.2808, allocations: 128.7 kB / 435.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2808, allocations: 4 kB / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.185e-05/0.2809, allocations: 15.92 kB / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2809, allocations: 0 / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.2809, allocations: 0 / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2809, allocations: 0 / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2809, allocations: 7.938 kB / 435.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001508/0.2811, allocations: 85.11 kB / 435.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.768e-05/0.2811, allocations: 15.88 kB / 435.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.2811, allocations: 7.938 kB / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.993e-05/0.2811, allocations: 0 / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-06/0.2811, allocations: 0 / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.2811, allocations: 0 / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.151e-05/0.2812, allocations: 99.2 kB / 435.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2812, allocations: 0 / 435.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001829/0.2814, allocations: 4 kB / 435.7 MB, free: 1.922 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: 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.0004659/0.2819, allocations: 0.6245 MB / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001091/0.282, allocations: 31.91 kB / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.282, allocations: 0 / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.282, allocations: 0 / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.2822, allocations: 26.67 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.2833, allocations: 1.186 MB / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.2836, allocations: 0.6884 MB / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.358e-05/0.2836, allocations: 0 / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.069e-05/0.2837, allocations: 15.44 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2837, allocations: 0 / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02864/0.3123, allocations: 1.438 MB / 439.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.07, allocations: 11.48 kB / 439.7 MB, free: 13.87 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.436043739086017]