Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001701/0.001701, allocations: 113.1 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.002197/0.002197, allocations: 214.4 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 8.008 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: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 51.92 kB / 378.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2355, allocations: 53.36 MB / 431.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008915/0.2444, allocations: 5.498 MB / 437.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004409/0.2489, allocations: 2.169 MB / 439.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009192/0.2498, allocations: 51.56 kB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006375/0.2504, allocations: 210.2 kB / 439.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007157/0.2511, allocations: 170.4 kB / 439.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.2524, allocations: 430.6 kB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001474/0.2539, allocations: 1.002 MB / 441.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008121/0.2547, allocations: 425.6 kB / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005994/0.2553, allocations: 350.9 kB / 441.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005459/0.2558, allocations: 370.3 kB / 442.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.256, allocations: 92 kB / 442.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002742/0.2562, allocations: 155.9 kB / 442.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.2564, allocations: 207.4 kB / 442.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004255/0.2568, allocations: 441.9 kB / 443.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.2582, allocations: 1.196 MB / 444.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.2582, allocations: 0 / 444.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2582, allocations: 4 kB / 444.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.2582, allocations: 0 / 444.3 MB, free: 10.15 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001519/0.2597, allocations: 0.9726 MB / 445.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.2597, allocations: 12.03 kB / 445.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002508/0.26, allocations: 100.4 kB / 445.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000839/0.2608, allocations: 468.3 kB / 445.9 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.326e-05/0.2609, allocations: 62.38 kB / 445.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.261, allocations: 88.33 kB / 446 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.2624, allocations: 0.8047 MB / 446.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/0.2624, allocations: 4 kB / 446.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.111e-05/0.2625, allocations: 36 kB / 446.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.2625, allocations: 20 kB / 446.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2636, allocations: 0.4996 MB / 447.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00353/0.2671, allocations: 2.765 MB / 450.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005857/0.2677, allocations: 207.4 kB / 450.3 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.2679, allocations: 104.8 kB / 450.4 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.268, allocations: 23.91 kB / 450.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.268, allocations: 35.06 kB / 450.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.268, allocations: 0 / 450.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002457/0.2705, allocations: 1.112 MB / 451.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.2705, allocations: 59.41 kB / 451.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003709/0.2709, allocations: 317.6 kB / 452 MB, free: 2.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.2709, allocations: 29.7 kB / 452 MB, free: 2.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.2712, allocations: 411.7 kB / 452.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.2713, allocations: 138.8 kB / 452.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.2714, allocations: 90.08 kB / 452.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2716, allocations: 354.7 kB / 453 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.2718, allocations: 108.9 kB / 453.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.2722, allocations: 246.1 kB / 453.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005804/0.2727, allocations: 396.6 kB / 453.7 MB, free: 296 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2727, allocations: 4 kB / 453.7 MB, free: 292 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007883/0.2735, allocations: 457.7 kB / 454.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.2736, allocations: 8 kB / 454.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.2736, allocations: 4 kB / 454.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001848/0.2738, allocations: 40.78 kB / 454.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003695/0.2741, allocations: 103.9 kB / 454.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004348/0.2746, allocations: 0.5565 MB / 454.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.2748, allocations: 23.98 kB / 454.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.077e-05/0.2748, allocations: 24 kB / 454.9 MB, free: 15.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002837/0.2751, allocations: 217.6 kB / 455.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.982e-05/0.2752, allocations: 35.81 kB / 455.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006563/0.2758, allocations: 334.4 kB / 455.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.2758, allocations: 4 kB / 455.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2758, allocations: 0 / 455.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.2758, allocations: 0 / 455.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.2774, allocations: 0.9915 MB / 456.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2774, allocations: 0 / 456.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003842/0.2778, allocations: 79.91 kB / 456.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001297/0.2779, allocations: 32.83 kB / 456.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/0.2779, allocations: 12 kB / 456.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003937/0.2783, allocations: 0.5484 MB / 457.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.2783, allocations: 8.25 kB / 457.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008488/0.2792, allocations: 0.541 MB / 457.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.923e-05/0.2792, allocations: 35.75 kB / 457.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.2793, allocations: 12 kB / 457.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.2795, allocations: 8 kB / 457.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.2795, allocations: 23.95 kB / 457.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.2795, allocations: 16 kB / 457.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002317/0.2798, allocations: 215.2 kB / 458 MB, free: 11.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2798, allocations: 3.938 kB / 458 MB, free: 11.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005088/0.2803, allocations: 131.9 kB / 458.1 MB, free: 11.67 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001658/0.2805, allocations: 117.2 kB / 458.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006562/0.2811, allocations: 304.7 kB / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2811, allocations: 4.062 kB / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.2814, allocations: 131.8 kB / 458.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005145/0.2819, allocations: 64.5 kB / 458.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.2847, allocations: 1.601 MB / 460.4 MB, free: 9.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006409/0.2853, allocations: 0.9248 MB / 461.3 MB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001619/0.2855, allocations: 49.58 kB / 461.3 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.344e-05/0.2856, allocations: 31.44 kB / 461.4 MB, free: 8.379 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2856, allocations: 0 / 461.4 MB, free: 8.379 MB / 366.1 MB Notification: Performance of Templates: time 0.01099/0.2965, allocations: 4.182 MB / 465.5 MB, free: 4.227 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 4.754755950998515]