Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.001123/0.001123, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008079/0.0008079, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8745/0.8745, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.Sample3,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.546e-06/1.017e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.00194/0.00195, allocations: 1.706 MB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002841/0.002234, allocations: 159.4 kB / 326.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.114e-05/0.002295, allocations: 0 / 326.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.49e-05/0.00233, allocations: 19.86 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.002432, allocations: 7.875 kB / 326.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001619/0.002593, allocations: 43.83 kB / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.904e-05/0.002673, allocations: 55.83 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.413e-05/0.002747, allocations: 23.92 kB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.756e-05/0.002784, allocations: 31.91 kB / 326.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.678e-05/0.002821, allocations: 23.91 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.79e-05/0.002839, allocations: 4 kB / 326.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.965e-06/0.002847, allocations: 4 kB / 326.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.3e-05/0.00288, allocations: 11.94 kB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.104e-05/0.002901, allocations: 27.91 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.528e-05/0.002996, allocations: 63.78 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.193e-06/0.002997, allocations: 0 / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.002998, allocations: 0 / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.277e-06/0.003001, allocations: 0 / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000295/0.003296, allocations: 317.9 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.003327, allocations: 11.98 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.414e-05/0.003351, allocations: 38.75 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.907e-05/0.00337, allocations: 8.891 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.003512, allocations: 149.5 kB / 327.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.003521, allocations: 12.31 kB / 327.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.003529, allocations: 4.375 kB / 327.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.00375, allocations: 165.3 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.299e-06/0.003755, allocations: 192 / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.003762, allocations: 384 / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.003767, allocations: 4.125 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.009e-05/0.003827, allocations: 35.98 kB / 327.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002568/0.004083, allocations: 329 kB / 327.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.00423, allocations: 107.8 kB / 327.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.432e-05/0.004284, allocations: 58.67 kB / 327.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.0043, allocations: 7.922 kB / 327.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.621e-05/0.004316, allocations: 42.44 kB / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 8.22e-07/0.004317, allocations: 0 / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001871/0.004504, allocations: 133.7 kB / 328.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.004546, allocations: 106.8 kB / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.274e-05/0.004619, allocations: 140.7 kB / 328.3 MB, free: 11.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.004629, allocations: 29.7 kB / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.297e-05/0.004662, allocations: 92.12 kB / 328.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.163e-05/0.004674, allocations: 7.891 kB / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.293e-05/0.004697, allocations: 17.67 kB / 328.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.563e-05/0.004762, allocations: 318.8 kB / 328.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.816e-05/0.004781, allocations: 8.234 kB / 328.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.888e-05/0.004799, allocations: 25.72 kB / 328.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.593e-05/0.004835, allocations: 29.7 kB / 328.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.004837, allocations: 0 / 328.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.218e-05/0.004899, allocations: 61.55 kB / 328.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.004908, allocations: 4 kB / 328.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.004912, allocations: 0 / 328.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.313e-06/0.004919, allocations: 4.125 kB / 328.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.858e-05/0.004938, allocations: 4 kB / 328.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.004942, allocations: 4 kB / 328.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.302e-05/0.004955, allocations: 0 / 328.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-06/0.004959, allocations: 4 kB / 328.9 MB, free: 11.21 MB / 298.7 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 5.279e-05/0.005012, allocations: 117.8 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.098e-05/0.005083, allocations: 85.52 kB / 329.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.114e-05/0.005104, allocations: 8.781 kB / 329.1 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.005106, allocations: 4 kB / 329.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.005109, allocations: 0 / 329.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.005112, allocations: 4 kB / 329.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.005245, allocations: 148.7 kB / 329.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.005247, allocations: 3.938 kB / 329.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.503e-05/0.005282, allocations: 19.98 kB / 329.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.005283, allocations: 0 / 329.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.005289, allocations: 8 kB / 329.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.00529, allocations: 0 / 329.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.005291, allocations: 0 / 329.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.005492, allocations: 316.3 kB / 329.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.983e-05/0.005521, allocations: 23.88 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.378e-06/0.005531, allocations: 0 / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.1e-05/0.005582, allocations: 7.938 kB / 329.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.125e-05/0.005603, allocations: 7.984 kB / 329.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.005607, allocations: 4.094 kB / 329.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.245e-05/0.005649, allocations: 111.1 kB / 329.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005649, allocations: 0 / 329.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001632/0.005813, allocations: 11.94 kB / 329.8 MB, free: 10.27 MB / 298.7 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 (10): * Single equations (assignments): 10 * 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.0003147/0.006127, allocations: 0.8499 MB / 330.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.842e-05/0.006206, allocations: 43.91 kB / 330.7 MB, free: 9.336 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-06/0.006207, allocations: 0 / 330.7 MB, free: 9.336 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.961e-05/0.006226, allocations: 15.92 kB / 330.7 MB, free: 9.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.006493, allocations: 38.19 kB / 330.7 MB, free: 9.285 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.007502, allocations: 1.421 MB / 332.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.408e-05/0.007556, allocations: 87.27 kB / 332.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.627e-05/0.007572, allocations: 3.875 kB / 332.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.007606, allocations: 28.48 kB / 332.3 MB, free: 7.625 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.007606, allocations: 0 / 332.3 MB, free: 7.625 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01246/0.02006, allocations: 2.454 MB / 334.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.562/6.582, allocations: 15.8 kB / 334.8 MB, free: 5.262 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,sample2.y,hold1.y Variables in the result:feedback.u1,feedback.u2,feedback.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sample2.u,sample2.y,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 8.216417980380356]