Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.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.00464/0.00464, allocations: 110.4 kB / 21.96 MB, free: 5.254 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.001297/0.001297, allocations: 202.5 kB / 25.27 MB, free: 3.238 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.287/1.287, allocations: 207.6 MB / 236 MB, free: 9.988 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.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",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.00245/0.00245, allocations: 51.92 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.251, allocations: 49.16 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002919/0.254, allocations: 2.364 MB / 399.5 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008358/0.2548, allocations: 0.6436 MB / 400.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.2549, allocations: 4.562 kB / 400.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.2551, allocations: 40.28 kB / 400.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.2552, allocations: 76.84 kB / 400.3 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.2554, allocations: 58.73 kB / 400.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.2557, allocations: 266.7 kB / 400.6 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.2558, allocations: 87.7 kB / 400.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.256, allocations: 109.2 kB / 400.8 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.2561, allocations: 114.8 kB / 400.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.2562, allocations: 20.88 kB / 400.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.831e-05/0.2562, allocations: 20.62 kB / 400.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.561e-05/0.2562, allocations: 45.36 kB / 401 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.2563, allocations: 129.4 kB / 401.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003064/0.2566, allocations: 263.5 kB / 401.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2567, allocations: 0 / 401.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2567, allocations: 0 / 401.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.2567, allocations: 5.281 kB / 401.4 MB, free: 6.27 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005926/0.2573, allocations: 455.9 kB / 401.8 MB, free: 5.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.2573, allocations: 13.02 kB / 401.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.901e-05/0.2573, allocations: 6.094 kB / 401.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.173e-05/0.2574, allocations: 63.19 kB / 401.9 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.2574, allocations: 30.47 kB / 401.9 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.2576, allocations: 182.8 kB / 402.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.2577, allocations: 17.16 kB / 402.1 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.2577, allocations: 27.7 kB / 402.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000323/0.258, allocations: 195.8 kB / 402.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.258, allocations: 1.609 kB / 402.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.2581, allocations: 10.5 kB / 402.3 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.2581, allocations: 10.78 kB / 402.3 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.2583, allocations: 140.2 kB / 402.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000796/0.2591, allocations: 0.5841 MB / 403.1 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.2594, allocations: 174.2 kB / 403.2 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.2595, allocations: 94.75 kB / 403.3 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.2596, allocations: 5.562 kB / 403.3 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.2596, allocations: 46 kB / 403.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.2596, allocations: 0 / 403.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001565/0.2611, allocations: 0.9163 MB / 404.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.2612, allocations: 59.72 kB / 404.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.2613, allocations: 178.2 kB / 404.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.2613, allocations: 30.45 kB / 404.6 MB, free: 4.141 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.2614, allocations: 144.2 kB / 404.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.177e-05/0.2614, allocations: 122.5 kB / 404.8 MB, free: 3.914 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.705e-05/0.2615, allocations: 47.06 kB / 404.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.815e-05/0.2615, allocations: 338.7 kB / 405.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.2617, allocations: 70.12 kB / 405.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.2618, allocations: 106.9 kB / 405.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.2621, allocations: 195.2 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.2621, allocations: 0 / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004452/0.2625, allocations: 291.4 kB / 405.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2626, allocations: 5.375 kB / 405.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2626, allocations: 1.156 kB / 405.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001679/0.2627, allocations: 42.3 kB / 405.9 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.263, allocations: 59.91 kB / 405.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.264, allocations: 1.645 MB / 407.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.2641, allocations: 7.406 kB / 407.6 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.2641, allocations: 7.062 kB / 407.6 MB, free: 1.672 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.436e-05/0.2642, allocations: 147.9 kB / 407.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.15e-05/0.2643, allocations: 22.86 kB / 407.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.67e-05/0.2643, allocations: 28.22 kB / 407.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2643, allocations: 8.188 kB / 407.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2643, allocations: 1.375 kB / 407.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2643, allocations: 0 / 407.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008992/0.2652, allocations: 0.7552 MB / 408.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2652, allocations: 6.359 kB / 408.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.2655, allocations: 52.12 kB / 408.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.825e-05/0.2656, allocations: 37.58 kB / 408.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.2656, allocations: 10.47 kB / 408.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009137/0.2665, allocations: 1.379 MB / 410 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2665, allocations: 6.406 kB / 410.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007099/0.2672, allocations: 495.6 kB / 410.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.49e-05/0.2673, allocations: 20.14 kB / 410.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.2673, allocations: 7.312 kB / 410.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.2674, allocations: 17.33 kB / 410.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.692e-05/0.2675, allocations: 27.73 kB / 410.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.2675, allocations: 11.39 kB / 410.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000108/0.2676, allocations: 126.6 kB / 410.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2676, allocations: 0 / 410.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.268, allocations: 69.75 kB / 410.8 MB, free: 15.15 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.0009747/0.2689, allocations: 1.007 MB / 411.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005622/0.2695, allocations: 332.6 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2695, allocations: 0 / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003385/0.2698, allocations: 240.8 kB / 412.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.2703, allocations: 43.09 kB / 412.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.2738, allocations: 2.748 MB / 415.2 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.2742, allocations: 0.7581 MB / 415.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.823e-05/0.2742, allocations: 29.75 kB / 416 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.2744, allocations: 77 kB / 416 MB, free: 11.23 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2744, allocations: 0 / 416 MB, free: 11.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.3052, allocations: 5.549 MB / 421.6 MB, free: 8.645 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.24, allocations: 11.7 kB / 421.6 MB, free: 8.637 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.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.444636953994632]