Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 113 kB / 21.17 MB, free: 0.7812 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 219.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.386/1.386, allocations: 230.4 MB / 258.1 MB, free: 8.145 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 59.84 kB / 378.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2446, allocations: 53.33 MB / 432 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007025/0.2516, allocations: 5.494 MB / 437.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004029/0.2557, allocations: 2.165 MB / 439.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007306/0.2564, allocations: 39.81 kB / 439.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005766/0.257, allocations: 206.2 kB / 439.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004873/0.2575, allocations: 178.4 kB / 440.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.2585, allocations: 418.8 kB / 440.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00128/0.2598, allocations: 1.009 MB / 441.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007023/0.2605, allocations: 421.1 kB / 441.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005759/0.2611, allocations: 350.8 kB / 442.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004557/0.2615, allocations: 370.3 kB / 442.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.2616, allocations: 92 kB / 442.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002831/0.2619, allocations: 155.9 kB / 442.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.2621, allocations: 203.4 kB / 443.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000418/0.2625, allocations: 437.9 kB / 443.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.2639, allocations: 1.196 MB / 444.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.2639, allocations: 0 / 444.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2639, allocations: 0 / 444.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.2639, allocations: 0 / 444.7 MB, free: 10.66 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.001646/0.2656, allocations: 1.056 MB / 445.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2656, allocations: 12.03 kB / 445.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.2658, allocations: 100.4 kB / 445.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008355/0.2667, allocations: 0.5262 MB / 446.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.157e-05/0.2667, allocations: 62.38 kB / 446.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.2669, allocations: 88.33 kB / 446.5 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.2682, allocations: 0.8087 MB / 447.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.438e-05/0.2683, allocations: 3.938 kB / 447.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.886e-05/0.2683, allocations: 36 kB / 447.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.2684, allocations: 28 kB / 447.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009749/0.2693, allocations: 0.4918 MB / 447.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00338/0.2727, allocations: 2.861 MB / 450.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005638/0.2733, allocations: 206.7 kB / 451 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.2735, allocations: 101.2 kB / 451.1 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002337/0.2737, allocations: 243.3 kB / 451.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.2737, allocations: 39.06 kB / 451.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.724e-06/0.2737, allocations: 0 / 451.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002463/0.2762, allocations: 1.271 MB / 452.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.2762, allocations: 55.41 kB / 452.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.2766, allocations: 313.6 kB / 453 MB, free: 1.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.2766, allocations: 33.64 kB / 453 MB, free: 1.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002748/0.2769, allocations: 415.7 kB / 453.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.277, allocations: 138.8 kB / 453.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.2771, allocations: 86.2 kB / 453.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.2773, allocations: 354.7 kB / 454 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.2775, allocations: 109.1 kB / 454.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003249/0.2778, allocations: 250.7 kB / 454.3 MB, free: 492 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005653/0.2784, allocations: 396.6 kB / 454.7 MB, free: 32 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2784, allocations: 0 / 454.7 MB, free: 32 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000767/0.2792, allocations: 465.6 kB / 455.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.2792, allocations: 4 kB / 455.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.2792, allocations: 8 kB / 455.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002323/0.2794, allocations: 40.83 kB / 455.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.2798, allocations: 103.8 kB / 455.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004318/0.2802, allocations: 0.5683 MB / 455.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.2804, allocations: 16 kB / 455.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.174e-05/0.2804, allocations: 20 kB / 455.9 MB, free: 14.78 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.0003086/0.2807, allocations: 217.6 kB / 456.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.691e-05/0.2808, allocations: 39.77 kB / 456.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006054/0.2814, allocations: 317.6 kB / 456.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.2814, allocations: 4 kB / 456.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2814, allocations: 0 / 456.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.2814, allocations: 7.984 kB / 456.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.2829, allocations: 1.012 MB / 457.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2829, allocations: 7.984 kB / 457.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003487/0.2832, allocations: 79.91 kB / 457.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001262/0.2834, allocations: 32.78 kB / 457.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.2834, allocations: 15.98 kB / 457.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003664/0.2838, allocations: 0.5486 MB / 458.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2838, allocations: 0 / 458.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008016/0.2846, allocations: 0.549 MB / 458.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.378e-05/0.2847, allocations: 112.9 kB / 458.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.646e-05/0.2847, allocations: 8 kB / 458.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.2849, allocations: 8 kB / 458.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.28e-05/0.2849, allocations: 28 kB / 458.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.2849, allocations: 12 kB / 458.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002596/0.2852, allocations: 215.1 kB / 459.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2852, allocations: 4 kB / 459.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005019/0.2857, allocations: 124 kB / 459.3 MB, free: 11.29 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.0001802/0.2859, allocations: 123 kB / 459.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006529/0.2865, allocations: 297.8 kB / 459.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2865, allocations: 0 / 459.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002646/0.2868, allocations: 143.7 kB / 459.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.2873, allocations: 65.47 kB / 459.9 MB, free: 10.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00284/0.2901, allocations: 1.65 MB / 461.5 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006157/0.2908, allocations: 0.9171 MB / 462.4 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.903e-05/0.2909, allocations: 35.44 kB / 462.5 MB, free: 7.992 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2909, allocations: 0 / 462.5 MB, free: 7.992 MB / 366.1 MB Notification: Performance of Templates: time 0.01396/0.3048, allocations: 9.906 MB / 472.4 MB, free: 14.1 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.3539297436363995]