Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.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.001614/0.001614, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001927/0.001927, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.699/1.699, allocations: 230.5 MB / 258.2 MB, free: 8.035 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.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 67.89 kB / 378.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3229, allocations: 53.41 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003596/0.3265, allocations: 1.58 MB / 433.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.3277, allocations: 0.5452 MB / 434.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.3278, allocations: 0 / 434.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.936e-05/0.3279, allocations: 3.938 kB / 434.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.3281, allocations: 19.86 kB / 434.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003982/0.3285, allocations: 51.83 kB / 434.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.3286, allocations: 39.89 kB / 434.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.3287, allocations: 8 kB / 434.2 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.3289, allocations: 31.86 kB / 434.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.346e-05/0.329, allocations: 19.86 kB / 434.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.329, allocations: 4 kB / 434.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.007e-05/0.3291, allocations: 4 kB / 434.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.518e-05/0.3291, allocations: 15.92 kB / 434.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.404e-05/0.3292, allocations: 27.86 kB / 434.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.3294, allocations: 56.11 kB / 434.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3294, allocations: 0 / 434.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3294, allocations: 0 / 434.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.3294, allocations: 0 / 434.4 MB, free: 4.289 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.000554/0.33, allocations: 290.1 kB / 434.7 MB, free: 3.977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.653e-05/0.33, allocations: 12.03 kB / 434.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.013e-05/0.33, allocations: 192 / 434.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.827e-05/0.3301, allocations: 34.69 kB / 434.7 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.3303, allocations: 20.88 kB / 434.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.3306, allocations: 141.1 kB / 434.9 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.3306, allocations: 4.375 kB / 434.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.3306, allocations: 4.375 kB / 434.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.3309, allocations: 101 kB / 435 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3309, allocations: 0 / 435 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.178e-06/0.3309, allocations: 0 / 435 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.3309, allocations: 0 / 435 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.684e-05/0.331, allocations: 15.98 kB / 435 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.3314, allocations: 244.7 kB / 435.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.467e-05/0.3315, allocations: 45.22 kB / 435.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.569e-05/0.3315, allocations: 21.77 kB / 435.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.3315, allocations: 3.938 kB / 435.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.3316, allocations: 30.56 kB / 435.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.3316, allocations: 0 / 435.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002666/0.3318, allocations: 81.5 kB / 435.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.3319, allocations: 77.11 kB / 435.5 MB, free: 3.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.332, allocations: 138.1 kB / 435.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.332, allocations: 25.7 kB / 435.6 MB, free: 2.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/0.3321, allocations: 92.12 kB / 435.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.359e-05/0.3321, allocations: 0 / 435.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.3322, allocations: 25.92 kB / 435.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3323, allocations: 318.8 kB / 436.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.356e-05/0.3324, allocations: 8 kB / 436.1 MB, free: 2.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.369e-05/0.3324, allocations: 21.7 kB / 436.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.581e-05/0.3325, allocations: 37.7 kB / 436.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3325, allocations: 0 / 436.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001167/0.3326, allocations: 49.69 kB / 436.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3326, allocations: 4 kB / 436.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3326, allocations: 0 / 436.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.3326, allocations: 4 kB / 436.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.973e-05/0.3327, allocations: 11.92 kB / 436.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3327, allocations: 0 / 436.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.186e-05/0.3328, allocations: 0 / 436.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.3328, allocations: 8.062 kB / 436.2 MB, free: 2.219 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: 0 () * 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.776e-05/0.3329, allocations: 121.8 kB / 436.3 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.873e-05/0.3329, allocations: 37.66 kB / 436.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.701e-05/0.333, allocations: 15.75 kB / 436.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.333, allocations: 4 kB / 436.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.333, allocations: 0 / 436.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.333, allocations: 0 / 436.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.3332, allocations: 144.6 kB / 436.5 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3332, allocations: 4 kB / 436.5 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.592e-05/0.3332, allocations: 12.02 kB / 436.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3332, allocations: 0 / 436.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.894e-06/0.3332, allocations: 7.875 kB / 436.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.3332, allocations: 0 / 436.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3332, allocations: 0 / 436.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.3334, allocations: 168.3 kB / 436.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/0.3335, allocations: 7.953 kB / 436.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.3335, allocations: 8 kB / 436.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.387e-05/0.3336, allocations: 3.984 kB / 436.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.3336, allocations: 4 kB / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-06/0.3336, allocations: 0 / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.233e-05/0.3337, allocations: 114 kB / 436.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3337, allocations: 0 / 436.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.3339, allocations: 4 kB / 436.9 MB, free: 1.5 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: 0 () * 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.0005512/0.3345, allocations: 0.7014 MB / 437.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001481/0.3346, allocations: 23.92 kB / 437.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3346, allocations: 4.156 kB / 437.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/0.3347, allocations: 4 kB / 437.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.335, allocations: 16.02 kB / 437.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.3365, allocations: 1.312 MB / 438.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.3369, allocations: 0.6924 MB / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.827e-05/0.3369, allocations: 4 kB / 439.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.091e-05/0.337, allocations: 19.42 kB / 439.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.337, allocations: 0 / 439.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.3602, allocations: 1.617 MB / 441.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.45, allocations: 4.766 kB / 441.3 MB, free: 13.08 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 14.369785471993964]