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.001359/0.001359, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001735/0.001735, allocations: 205.1 kB / 24.48 MB, free: 3.695 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.498/1.498, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.001548/0.001548, allocations: 55.84 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2461, allocations: 53.36 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006788/0.2529, allocations: 4.838 MB / 437.2 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003755/0.2566, allocations: 2.06 MB / 439.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005098/0.2572, allocations: 51.56 kB / 439.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005037/0.2577, allocations: 210.2 kB / 439.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003662/0.258, allocations: 174.4 kB / 439.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008989/0.2589, allocations: 399 kB / 440 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.26, allocations: 1.017 MB / 441.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006353/0.2606, allocations: 421.4 kB / 441.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004834/0.2611, allocations: 350.8 kB / 441.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004494/0.2616, allocations: 370.3 kB / 442.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.2617, allocations: 92 kB / 442.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002615/0.262, allocations: 159.9 kB / 442.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002012/0.2622, allocations: 203.4 kB / 442.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003435/0.2625, allocations: 342.5 kB / 442.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.2638, allocations: 1.205 MB / 444.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2638, allocations: 0 / 444.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2638, allocations: 0 / 444.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.2638, allocations: 0 / 444.2 MB, free: 10.82 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.001507/0.2653, allocations: 0.9805 MB / 445.1 MB, free: 9.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.2653, allocations: 8.031 kB / 445.1 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.2656, allocations: 108.4 kB / 445.2 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008342/0.2664, allocations: 464.2 kB / 445.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.277e-05/0.2665, allocations: 66.36 kB / 445.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.2666, allocations: 92.33 kB / 445.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.268, allocations: 0.8008 MB / 446.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/0.2681, allocations: 4 kB / 446.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.819e-05/0.2681, allocations: 36 kB / 446.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.2682, allocations: 24 kB / 446.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009902/0.2692, allocations: 495.6 kB / 447.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.2723, allocations: 2.481 MB / 449.7 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005716/0.2728, allocations: 207.8 kB / 449.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.273, allocations: 96.81 kB / 450 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.2732, allocations: 15.98 kB / 450 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.2732, allocations: 43 kB / 450 MB, free: 4.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.2732, allocations: 0 / 450 MB, free: 4.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002343/0.2755, allocations: 1.124 MB / 451.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.2756, allocations: 59.41 kB / 451.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/0.2759, allocations: 317.6 kB / 451.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.276, allocations: 33.69 kB / 451.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.2762, allocations: 407.8 kB / 452 MB, free: 2.699 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.2763, allocations: 146.7 kB / 452.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.2765, allocations: 86.14 kB / 452.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.2766, allocations: 354.7 kB / 452.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.2769, allocations: 105 kB / 452.6 MB, free: 2.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.2772, allocations: 250.1 kB / 452.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005558/0.2777, allocations: 400.6 kB / 453.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2777, allocations: 0 / 453.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007442/0.2785, allocations: 457.4 kB / 453.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.2785, allocations: 8 kB / 453.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.2785, allocations: 4 kB / 453.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001894/0.2787, allocations: 36.78 kB / 453.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.2791, allocations: 112.4 kB / 453.9 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004396/0.2795, allocations: 0.564 MB / 454.4 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.2797, allocations: 19.98 kB / 454.5 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.2797, allocations: 20 kB / 454.5 MB, free: 0 / 350.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.0003045/0.28, allocations: 225.6 kB / 454.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.705e-05/0.2801, allocations: 35.77 kB / 454.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006516/0.2808, allocations: 326 kB / 455.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.2808, allocations: 8.062 kB / 455.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2808, allocations: 0 / 455.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2808, allocations: 0 / 455.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.2821, allocations: 0.8441 MB / 455.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2821, allocations: 0 / 455.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003769/0.2825, allocations: 79.89 kB / 456 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001266/0.2826, allocations: 32.84 kB / 456 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.2826, allocations: 12.16 kB / 456 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003793/0.283, allocations: 0.5522 MB / 456.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.283, allocations: 4.031 kB / 456.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007877/0.2838, allocations: 0.5448 MB / 457.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.9e-05/0.2839, allocations: 35.89 kB / 457.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.2839, allocations: 12 kB / 457.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.2841, allocations: 15.92 kB / 457.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.164e-05/0.2841, allocations: 19.97 kB / 457.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.2842, allocations: 24.05 kB / 457.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.2844, allocations: 211.2 kB / 457.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2844, allocations: 0 / 457.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004981/0.2849, allocations: 120 kB / 457.6 MB, free: 12.79 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.0001749/0.2851, allocations: 123.2 kB / 457.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006188/0.2857, allocations: 300.2 kB / 458 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2857, allocations: 0 / 458 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002849/0.286, allocations: 143.7 kB / 458.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005255/0.2865, allocations: 69.88 kB / 458.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.289, allocations: 1.636 MB / 459.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.2894, allocations: 329.6 kB / 460.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.161e-05/0.2895, allocations: 35.44 kB / 460.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of SimCode: time 6.42e-07/0.2895, allocations: 0 / 460.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of Templates: time 0.01347/0.303, allocations: 10.19 MB / 470.4 MB, free: 15.91 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/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: 8.037841290002689]