Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=2000,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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 210.8 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2484, allocations: 50.55 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007111/0.2556, allocations: 5.425 MB / 415.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004084/0.2597, allocations: 2.141 MB / 417.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.2609, allocations: 35.81 kB / 417.5 MB, free: 9.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007243/0.2617, allocations: 210.2 kB / 417.7 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008596/0.2625, allocations: 174.4 kB / 417.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.2637, allocations: 399 kB / 418.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.2651, allocations: 1.025 MB / 419.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.2662, allocations: 0.6065 MB / 419.9 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005802/0.2668, allocations: 346.9 kB / 420.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005221/0.2673, allocations: 362.3 kB / 420.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001564/0.2675, allocations: 92 kB / 420.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003306/0.2678, allocations: 159.9 kB / 420.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.268, allocations: 203.4 kB / 421.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004934/0.2685, allocations: 430 kB / 421.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.2699, allocations: 1.188 MB / 422.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2699, allocations: 0 / 422.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2699, allocations: 0 / 422.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.732e-05/0.27, allocations: 0 / 422.7 MB, free: 4.801 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001804/0.2718, allocations: 1.037 MB / 423.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.2719, allocations: 8.031 kB / 423.7 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003428/0.2722, allocations: 99.8 kB / 423.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008609/0.2731, allocations: 0.522 MB / 424.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.88e-05/0.2731, allocations: 66.38 kB / 424.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.2733, allocations: 92.27 kB / 424.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.2747, allocations: 0.8086 MB / 425.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.01e-05/0.2747, allocations: 4 kB / 425.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.2748, allocations: 36 kB / 425.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.2748, allocations: 20 kB / 425.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.2759, allocations: 0.4957 MB / 425.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003595/0.2795, allocations: 2.86 MB / 428.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00058/0.2801, allocations: 222.7 kB / 428.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.2803, allocations: 108.8 kB / 429 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002214/0.2805, allocations: 247.3 kB / 429.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.2806, allocations: 35.06 kB / 429.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 3.136e-06/0.2806, allocations: 0 / 429.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002544/0.2831, allocations: 1.257 MB / 430.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.2832, allocations: 55.41 kB / 430.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.2835, allocations: 325.5 kB / 430.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.2836, allocations: 29.7 kB / 431 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.2838, allocations: 398.5 kB / 431.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.878e-05/0.2839, allocations: 134.1 kB / 431.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.284, allocations: 86.25 kB / 431.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2842, allocations: 350.7 kB / 431.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.2844, allocations: 109.1 kB / 432 MB, free: 10.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.2847, allocations: 250.7 kB / 432.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000516/0.2852, allocations: 396.6 kB / 432.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.2852, allocations: 4 kB / 432.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007277/0.286, allocations: 453.5 kB / 433.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.286, allocations: 10.97 kB / 433.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.286, allocations: 4 kB / 433.1 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.2862, allocations: 40.78 kB / 433.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003432/0.2866, allocations: 107.9 kB / 433.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003963/0.287, allocations: 0.5642 MB / 433.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.2872, allocations: 16 kB / 433.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.855e-05/0.2873, allocations: 24 kB / 433.9 MB, free: 8.957 MB / 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.0003029/0.2876, allocations: 217.6 kB / 434.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.949e-05/0.2877, allocations: 31.62 kB / 434.1 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006098/0.2883, allocations: 330.2 kB / 434.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.2883, allocations: 4 kB / 434.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.2883, allocations: 0 / 434.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.2883, allocations: 7.922 kB / 434.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.2898, allocations: 1.008 MB / 435.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.2898, allocations: 4 kB / 435.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.2902, allocations: 79.89 kB / 435.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001422/0.2903, allocations: 32.84 kB / 435.6 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.2904, allocations: 11.98 kB / 435.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003573/0.2907, allocations: 0.5562 MB / 436.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2908, allocations: 8.219 kB / 436.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007453/0.2915, allocations: 0.5447 MB / 436.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.826e-05/0.2916, allocations: 100.7 kB / 436.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.2917, allocations: 11.98 kB / 436.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/0.2918, allocations: 8 kB / 436.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.753e-05/0.2919, allocations: 23.97 kB / 436.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-05/0.2919, allocations: 16 kB / 436.8 MB, free: 5.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.2922, allocations: 215.2 kB / 437.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2922, allocations: 4.125 kB / 437.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000563/0.2927, allocations: 128 kB / 437.2 MB, free: 5.465 MB / 350.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.0001787/0.2929, allocations: 119.2 kB / 437.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006303/0.2936, allocations: 313.7 kB / 437.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2936, allocations: 4.125 kB / 437.6 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.2938, allocations: 139.8 kB / 437.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005013/0.2944, allocations: 63.31 kB / 437.8 MB, free: 4.836 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.297, allocations: 1.621 MB / 439.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005404/0.2975, allocations: 0.9248 MB / 440.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.407e-05/0.2976, allocations: 35.44 kB / 440.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2976, allocations: 0 / 440.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of Templates: time 0.01386/0.3115, allocations: 9.818 MB / 450.2 MB, free: 8.371 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches