Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001497/0.001497, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.00172/0.00172, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.416/1.416, allocations: 230.6 MB / 257.5 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 47.92 kB / 377.8 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2479, allocations: 53.37 MB / 431.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003974/0.2518, allocations: 2.38 MB / 433.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.2532, allocations: 0.6583 MB / 434.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.2534, allocations: 7.938 kB / 434.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.2535, allocations: 31.66 kB / 434.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.2538, allocations: 83.27 kB / 434.3 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.2541, allocations: 71.84 kB / 434.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003785/0.2545, allocations: 274.7 kB / 434.6 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.2547, allocations: 71.23 kB / 434.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.2549, allocations: 127.5 kB / 434.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2552, allocations: 111.5 kB / 434.9 MB, free: 3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.997e-05/0.2552, allocations: 20 kB / 435 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.008e-05/0.2553, allocations: 24 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.948e-05/0.2553, allocations: 51.83 kB / 435 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.2555, allocations: 123.3 kB / 435.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.2559, allocations: 275.2 kB / 435.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2559, allocations: 4 kB / 435.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2559, allocations: 7.938 kB / 435.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2559, allocations: 0 / 435.4 MB, free: 2.512 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007914/0.2567, allocations: 457.5 kB / 435.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.2567, allocations: 12.03 kB / 435.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.155e-05/0.2568, allocations: 54.67 kB / 435.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.2569, allocations: 44.73 kB / 436 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.2573, allocations: 178.9 kB / 436.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.2573, allocations: 16.81 kB / 436.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.187e-05/0.2574, allocations: 32.33 kB / 436.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003645/0.2577, allocations: 195.4 kB / 436.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.2578, allocations: 3.938 kB / 436.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.2578, allocations: 12 kB / 436.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.2578, allocations: 4 kB / 436.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.2581, allocations: 145.6 kB / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.2591, allocations: 0.5949 MB / 437.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.2594, allocations: 164.2 kB / 437.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.2596, allocations: 91.78 kB / 437.4 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.2596, allocations: 8.094 kB / 437.4 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.2597, allocations: 34.5 kB / 437.5 MB, free: 372 kB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.2597, allocations: 0 / 437.5 MB, free: 372 kB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002033/0.2617, allocations: 0.9272 MB / 438.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.2618, allocations: 67.28 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.2619, allocations: 175.2 kB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.262, allocations: 33.7 kB / 438.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.2621, allocations: 144.8 kB / 438.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.995e-05/0.2622, allocations: 111 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-05/0.2623, allocations: 53.7 kB / 439 MB, free: 14.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.2624, allocations: 334.8 kB / 439.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2626, allocations: 71.97 kB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.2628, allocations: 107.8 kB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.2631, allocations: 200.9 kB / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2631, allocations: 0 / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005356/0.2636, allocations: 287.3 kB / 439.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2636, allocations: 8 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2637, allocations: 0 / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001852/0.2638, allocations: 40.91 kB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002532/0.2641, allocations: 63.91 kB / 440 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.2657, allocations: 1.637 MB / 441.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001408/0.2658, allocations: 8.031 kB / 441.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.2659, allocations: 8 kB / 441.7 MB, free: 11.88 MB / 350.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 0.0001501/0.266, allocations: 137.8 kB / 441.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.908e-05/0.2661, allocations: 35.72 kB / 441.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.568e-05/0.2661, allocations: 34.7 kB / 441.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2661, allocations: 4 kB / 441.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.2661, allocations: 3.938 kB / 441.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2662, allocations: 0 / 441.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.2674, allocations: 0.7656 MB / 442.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2674, allocations: 0 / 442.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.2677, allocations: 51.97 kB / 442.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/0.2678, allocations: 40.78 kB / 442.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.2678, allocations: 4 kB / 442.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.2691, allocations: 1.389 MB / 444.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2691, allocations: 3.938 kB / 444.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007274/0.2698, allocations: 486.9 kB / 444.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.2699, allocations: 20.09 kB / 444.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.2699, allocations: 8 kB / 444.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.2701, allocations: 16.03 kB / 444.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.2701, allocations: 23.95 kB / 444.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.2702, allocations: 11.98 kB / 444.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.2703, allocations: 132.4 kB / 444.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2703, allocations: 0 / 444.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003954/0.2707, allocations: 64 kB / 444.9 MB, free: 8.441 MB / 350.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.001074/0.2717, allocations: 1.02 MB / 445.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006581/0.2724, allocations: 334.6 kB / 446.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2724, allocations: 0 / 446.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.2728, allocations: 226.6 kB / 446.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.2732, allocations: 48.2 kB / 446.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00392/0.2771, allocations: 2.763 MB / 449.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.2775, allocations: 0.7524 MB / 450 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.81e-05/0.2776, allocations: 26.3 kB / 450.1 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.2778, allocations: 71.41 kB / 450.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2778, allocations: 0 / 450.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.3166, allocations: 5.569 MB / 455.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.66, allocations: 4.062 kB / 455.7 MB, free: 13.58 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.977082751924172]