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.001372/0.001372, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.001414/0.001414, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.418/1.418, allocations: 230.5 MB / 257.4 MB, free: 8.176 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.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 0.001843/0.001843, allocations: 63.89 kB / 377.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2835, allocations: 53.41 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.002884/0.2863, allocations: 1.706 MB / 432.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004249/0.2868, allocations: 175.3 kB / 433.1 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.129e-05/0.2868, allocations: 4 kB / 433.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.815e-05/0.2869, allocations: 11.86 kB / 433.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.287, allocations: 11.94 kB / 433.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.2873, allocations: 43.83 kB / 433.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001133/0.2874, allocations: 51.91 kB / 433.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.2875, allocations: 23.97 kB / 433.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.257e-05/0.2875, allocations: 27.86 kB / 433.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.625e-05/0.2876, allocations: 23.86 kB / 433.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.065e-05/0.2876, allocations: 4 kB / 433.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.126e-05/0.2876, allocations: 8 kB / 433.3 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.624e-05/0.2877, allocations: 19.92 kB / 433.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.2877, allocations: 27.75 kB / 433.3 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.2878, allocations: 79.95 kB / 433.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2878, allocations: 0 / 433.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2878, allocations: 0 / 433.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2879, allocations: 4 kB / 433.4 MB, free: 4.461 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004594/0.2883, allocations: 313.9 kB / 433.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.2884, allocations: 12.03 kB / 433.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.2884, allocations: 38.75 kB / 433.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.2884, allocations: 12.89 kB / 433.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.2886, allocations: 146.3 kB / 433.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.2887, allocations: 4.312 kB / 433.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.2887, allocations: 8.375 kB / 433.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.289, allocations: 170.3 kB / 434.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.289, allocations: 3.938 kB / 434.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.289, allocations: 4 kB / 434.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.289, allocations: 0 / 434.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.2891, allocations: 35.92 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003896/0.2895, allocations: 344.9 kB / 434.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/0.2898, allocations: 111.9 kB / 434.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.701e-05/0.2899, allocations: 54.61 kB / 434.6 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.2899, allocations: 4.141 kB / 434.6 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.2899, allocations: 38.56 kB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.2899, allocations: 0 / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003252/0.2902, allocations: 121.7 kB / 434.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/0.2903, allocations: 114.8 kB / 434.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.2904, allocations: 140 kB / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.2904, allocations: 25.7 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.2905, allocations: 88.14 kB / 435.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.2905, allocations: 15.88 kB / 435.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.011e-05/0.2906, allocations: 21.72 kB / 435.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2907, allocations: 322.8 kB / 435.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.94e-05/0.2908, allocations: 19.94 kB / 435.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.653e-05/0.2908, allocations: 71.66 kB / 435.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.291, allocations: 95.58 kB / 435.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.291, allocations: 8 kB / 435.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000185/0.2912, allocations: 101.4 kB / 435.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.2912, allocations: 8.188 kB / 435.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2912, allocations: 0 / 435.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.2912, allocations: 7.938 kB / 435.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.951e-05/0.2913, allocations: 20.27 kB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.2913, allocations: 11.94 kB / 435.9 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.877e-05/0.2913, allocations: 7.953 kB / 435.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.2914, allocations: 4 kB / 435.9 MB, free: 1.699 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (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 prepare postOptimizeDAE: time 9.572e-05/0.2914, allocations: 125.8 kB / 436 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.2916, allocations: 73.64 kB / 436.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.788e-05/0.2916, allocations: 12.72 kB / 436.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2916, allocations: 0 / 436.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2917, allocations: 4 kB / 436.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2917, allocations: 3.938 kB / 436.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/0.2919, allocations: 164.6 kB / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2919, allocations: 4 kB / 436.2 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.958e-05/0.292, allocations: 15.98 kB / 436.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.292, allocations: 4 kB / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.292, allocations: 4 kB / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.292, allocations: 0 / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.292, allocations: 4 kB / 436.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003642/0.2924, allocations: 316.2 kB / 436.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.863e-05/0.2924, allocations: 27.88 kB / 436.6 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.2924, allocations: 4 kB / 436.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.67e-05/0.2925, allocations: 8 kB / 436.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.2925, allocations: 3.984 kB / 436.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.2925, allocations: 4 kB / 436.6 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.554e-05/0.2926, allocations: 109.9 kB / 436.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2926, allocations: 0 / 436.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002722/0.2929, allocations: 12 kB / 436.7 MB, free: 0.7344 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 (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.0006272/0.2935, allocations: 0.8382 MB / 437.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001715/0.2937, allocations: 63.97 kB / 437.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2937, allocations: 3.938 kB / 437.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.73e-05/0.2937, allocations: 12.61 kB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.2942, allocations: 54.69 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.2957, allocations: 1.577 MB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.296, allocations: 0.6963 MB / 440 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.409e-05/0.296, allocations: 12.66 kB / 440 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.831e-05/0.2961, allocations: 19.44 kB / 440 MB, free: 13.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2961, allocations: 0 / 440 MB, free: 13.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02748/0.3236, allocations: 2.037 MB / 442.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.91, allocations: 0 / 442.1 MB, free: 11.34 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.278029412031174]