Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.001532/0.001532, allocations: 102.7 kB / 21.96 MB, free: 5.219 MB / 14.72 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.001659/0.001659, allocations: 214 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 207.7 MB / 236.1 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 58.73 kB / 348 MB, free: 9.883 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2456, allocations: 49.16 MB / 397.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003195/0.2488, allocations: 2.227 MB / 399.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009302/0.2497, allocations: 0.5978 MB / 400 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.2499, allocations: 7.25 kB / 400 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.25, allocations: 36.06 kB / 400 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.2501, allocations: 74.75 kB / 400.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.2504, allocations: 55 kB / 400.1 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002689/0.2506, allocations: 256.3 kB / 400.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.2508, allocations: 70.81 kB / 400.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.2509, allocations: 107.3 kB / 400.6 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.2511, allocations: 98.73 kB / 400.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.344e-05/0.2511, allocations: 18.94 kB / 400.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.563e-05/0.2512, allocations: 22.72 kB / 400.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.058e-05/0.2512, allocations: 50.39 kB / 400.7 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.2513, allocations: 93.81 kB / 400.8 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.2517, allocations: 249.2 kB / 401.1 MB, free: 6.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2517, allocations: 1.25 kB / 401.1 MB, free: 6.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2517, allocations: 4 kB / 401.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2517, allocations: 0 / 401.1 MB, free: 6.406 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006709/0.2524, allocations: 446.6 kB / 401.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.2524, allocations: 12.36 kB / 401.5 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.613e-05/0.2524, allocations: 15.34 kB / 401.5 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.48e-05/0.2525, allocations: 57.88 kB / 401.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.061e-05/0.2525, allocations: 24.52 kB / 401.6 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002935/0.2528, allocations: 186 kB / 401.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.2528, allocations: 17.53 kB / 401.8 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.2529, allocations: 23.02 kB / 401.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003552/0.2532, allocations: 206.8 kB / 402 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.2533, allocations: 10.06 kB / 402.1 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.2533, allocations: 5.219 kB / 402.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.2533, allocations: 5.781 kB / 402.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.2535, allocations: 131.2 kB / 402.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008523/0.2544, allocations: 0.6277 MB / 402.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.2546, allocations: 141.2 kB / 403 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.2547, allocations: 68.42 kB / 403 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.2548, allocations: 2.094 kB / 403 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.2548, allocations: 33.59 kB / 403.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.192e-06/0.2548, allocations: 0 / 403.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001358/0.2561, allocations: 0.7396 MB / 403.8 MB, free: 4.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.384e-05/0.2562, allocations: 55.39 kB / 403.9 MB, free: 4.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.2563, allocations: 174.9 kB / 404 MB, free: 4.332 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.2563, allocations: 27.42 kB / 404.1 MB, free: 4.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/0.2564, allocations: 147 kB / 404.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.2564, allocations: 93.08 kB / 404.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.378e-05/0.2565, allocations: 46.41 kB / 404.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.536e-05/0.2565, allocations: 329.2 kB / 404.7 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.2567, allocations: 57.98 kB / 404.7 MB, free: 3.727 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.2568, allocations: 102.9 kB / 404.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.257, allocations: 169.7 kB / 405 MB, free: 3.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.257, allocations: 1.281 kB / 405 MB, free: 3.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003886/0.2574, allocations: 253.1 kB / 405.2 MB, free: 3.434 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2574, allocations: 5.438 kB / 405.2 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.2574, allocations: 2.859 kB / 405.2 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.2576, allocations: 34.48 kB / 405.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.2578, allocations: 48.11 kB / 405.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008254/0.2586, allocations: 1.38 MB / 406.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2587, allocations: 15.73 kB / 406.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.2587, allocations: 5.438 kB / 406.7 MB, free: 2.074 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.753e-05/0.2588, allocations: 135.7 kB / 406.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.833e-05/0.2589, allocations: 21.08 kB / 406.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.982e-05/0.2589, allocations: 29.42 kB / 406.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2589, allocations: 3.031 kB / 406.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2589, allocations: 1.125 kB / 406.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.2589, allocations: 3.938 kB / 406.9 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007395/0.2596, allocations: 0.5961 MB / 407.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2596, allocations: 1.859 kB / 407.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/0.2598, allocations: 44.77 kB / 407.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.2599, allocations: 36.25 kB / 407.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.26, allocations: 10.22 kB / 407.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007226/0.2607, allocations: 1.381 MB / 409 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2607, allocations: 0 / 409 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005536/0.2612, allocations: 409.1 kB / 409.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.93e-05/0.2613, allocations: 18.16 kB / 409.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.665e-05/0.2613, allocations: 11.3 kB / 409.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.2614, allocations: 3.641 kB / 409.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.2615, allocations: 23.92 kB / 409.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.2615, allocations: 10.34 kB / 409.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001008/0.2616, allocations: 132.5 kB / 409.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2616, allocations: 0 / 409.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.2619, allocations: 58.88 kB / 409.6 MB, free: 15.7 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008629/0.2627, allocations: 0.9299 MB / 410.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005006/0.2632, allocations: 290.2 kB / 410.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2632, allocations: 0 / 410.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.2635, allocations: 205.3 kB / 411 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.2639, allocations: 40.14 kB / 411.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.267, allocations: 2.54 MB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.2672, allocations: 134.1 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.52e-05/0.2672, allocations: 22.25 kB / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.2673, allocations: 72.53 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2673, allocations: 0 / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.2962, allocations: 5.147 MB / 419 MB, free: 10.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.37, allocations: 3.719 kB / 419 MB, free: 10.27 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.604966307990253]