Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008348/0.0008348, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009432/0.0009432, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9128/0.9128, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.113e-05, allocations: 6.219 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.002359/0.00238, allocations: 1.855 MB / 326.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.003405, allocations: 0.7048 MB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.003506, allocations: 3.938 kB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.003633, allocations: 27.72 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.003783, allocations: 27.8 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005081/0.004291, allocations: 163.5 kB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001999/0.004491, allocations: 155.5 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.004613, allocations: 38.39 kB / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.004774, allocations: 91.67 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.785e-05/0.004862, allocations: 43.81 kB / 327.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.703e-05/0.004889, allocations: 12 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.885e-05/0.004978, allocations: 55.95 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.802e-05/0.005056, allocations: 47.83 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.78e-05/0.005104, allocations: 43.84 kB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.005358, allocations: 219.2 kB / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.00536, allocations: 0 / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.005362, allocations: 0 / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.005367, allocations: 4 kB / 328.1 MB, free: 12.44 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005898/0.005957, allocations: 397.6 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.006, allocations: 12.03 kB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.397e-05/0.006044, allocations: 42.73 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.006167, allocations: 28.78 kB / 328.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.006438, allocations: 201.7 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.006453, allocations: 4.562 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.006467, allocations: 12.38 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004748/0.006942, allocations: 361.3 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.00695, allocations: 0 / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.006963, allocations: 0 / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.006969, allocations: 4 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.007109, allocations: 83.94 kB / 329.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003376/0.007447, allocations: 292.6 kB / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003113/0.007758, allocations: 189.2 kB / 329.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.007871, allocations: 93.67 kB / 329.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002628/0.008134, allocations: 63.94 kB / 329.8 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.008156, allocations: 34.56 kB / 329.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.753e-06/0.008157, allocations: 4 kB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003705/0.008528, allocations: 240.3 kB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.008592, allocations: 110.8 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.008722, allocations: 198.8 kB / 330.4 MB, free: 9.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.008737, allocations: 29.7 kB / 330.4 MB, free: 9.871 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.008788, allocations: 100.6 kB / 330.5 MB, free: 9.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.008806, allocations: 11.95 kB / 330.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.00884, allocations: 33.78 kB / 330.5 MB, free: 9.719 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.056e-05/0.008911, allocations: 318.8 kB / 330.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.332e-05/0.008954, allocations: 27.98 kB / 330.9 MB, free: 9.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.675e-05/0.009011, allocations: 81.92 kB / 331 MB, free: 9.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.138e-05/0.009082, allocations: 71.34 kB / 331 MB, free: 9.188 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.009085, allocations: 4 kB / 331 MB, free: 9.184 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001168/0.009201, allocations: 109.6 kB / 331.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.009216, allocations: 4 kB / 331.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.009221, allocations: 0 / 331.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.009234, allocations: 4 kB / 331.2 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.786e-05/0.009292, allocations: 15.98 kB / 331.2 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.0093, allocations: 8.141 kB / 331.2 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.214e-05/0.009342, allocations: 19.77 kB / 331.2 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.009347, allocations: 0 / 331.2 MB, free: 9.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.506e-05/0.009442, allocations: 148.7 kB / 331.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.009616, allocations: 157.5 kB / 331.5 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002194/0.009835, allocations: 178 kB / 331.7 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.009839, allocations: 3.984 kB / 331.7 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.009845, allocations: 4 kB / 331.7 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.009852, allocations: 7.938 kB / 331.7 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.01002, allocations: 184.6 kB / 331.9 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.645e-06/0.01002, allocations: 4 kB / 331.9 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.719e-05/0.0101, allocations: 27.98 kB / 331.9 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.01011, allocations: 7.969 kB / 331.9 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.01012, allocations: 8 kB / 331.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.01012, allocations: 0 / 331.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01012, allocations: 0 / 331.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002643/0.01039, allocations: 286.4 kB / 332.2 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.142e-05/0.01046, allocations: 47.77 kB / 332.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.01048, allocations: 8 kB / 332.2 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.376e-05/0.01055, allocations: 15.92 kB / 332.3 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.581e-05/0.01057, allocations: 4 kB / 332.3 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.01059, allocations: 7.938 kB / 332.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.519e-05/0.01067, allocations: 148.2 kB / 332.4 MB, free: 7.727 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01067, allocations: 0 / 332.4 MB, free: 7.727 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001884/0.01086, allocations: 24 kB / 332.4 MB, free: 7.703 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0006138/0.01148, allocations: 0.9162 MB / 333.4 MB, free: 6.758 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001838/0.01166, allocations: 103.8 kB / 333.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01166, allocations: 0 / 333.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.724e-05/0.01168, allocations: 4 kB / 333.5 MB, free: 6.652 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.0121, allocations: 152.9 kB / 333.6 MB, free: 6.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.01348, allocations: 1.828 MB / 335.4 MB, free: 4.562 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.667e-05/0.01357, allocations: 123.6 kB / 335.6 MB, free: 4.426 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.092e-05/0.01361, allocations: 13.14 kB / 335.6 MB, free: 4.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.01367, allocations: 44.48 kB / 335.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01367, allocations: 0 / 335.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01817/0.03184, allocations: 4.983 MB / 340.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.11/7.142, allocations: 1.875 kB / 340.6 MB, free: 15.52 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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: 8.83779979776591]