Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 110.5 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009195/0.0009195, allocations: 51.92 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2557, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006476/0.2622, allocations: 5.425 MB / 406.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003661/0.2659, allocations: 2.079 MB / 408.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005448/0.2665, allocations: 39.75 kB / 408.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005271/0.267, allocations: 202.2 kB / 408.5 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003692/0.2674, allocations: 170.4 kB / 408.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000829/0.2682, allocations: 391.1 kB / 409 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009074/0.2692, allocations: 1.036 MB / 410 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007243/0.2699, allocations: 0.5948 MB / 410.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003809/0.2703, allocations: 342.8 kB / 411 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003837/0.2707, allocations: 370.3 kB / 411.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.2708, allocations: 92 kB / 411.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002507/0.2711, allocations: 151.9 kB / 411.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.2713, allocations: 195.5 kB / 411.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003769/0.2716, allocations: 437.9 kB / 412.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009837/0.2726, allocations: 1.177 MB / 413.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2726, allocations: 0 / 413.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2727, allocations: 0 / 413.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.2727, allocations: 0 / 413.4 MB, free: 12.17 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.001371/0.274, allocations: 1.034 MB / 414.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.2741, allocations: 8.031 kB / 414.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.2742, allocations: 87.91 kB / 414.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007405/0.275, allocations: 0.5297 MB / 415 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.712e-05/0.275, allocations: 62.38 kB / 415.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.2752, allocations: 88.38 kB / 415.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.2765, allocations: 0.8087 MB / 416 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.2765, allocations: 7.844 kB / 416 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.541e-05/0.2766, allocations: 39.98 kB / 416 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.2766, allocations: 24 kB / 416.1 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009354/0.2776, allocations: 0.4918 MB / 416.5 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.2804, allocations: 2.856 MB / 419.4 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005229/0.2809, allocations: 228.2 kB / 419.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.2811, allocations: 101.2 kB / 419.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001775/0.2813, allocations: 255.3 kB / 420 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.2813, allocations: 38.56 kB / 420 MB, free: 5.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.412e-06/0.2814, allocations: 0 / 420 MB, free: 5.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002205/0.2836, allocations: 1.253 MB / 421.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.2836, allocations: 51.41 kB / 421.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.2839, allocations: 308.5 kB / 421.6 MB, free: 3.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.2839, allocations: 33.64 kB / 421.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/0.2842, allocations: 398.5 kB / 422 MB, free: 3.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.606e-05/0.2842, allocations: 134.1 kB / 422.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.2844, allocations: 90.16 kB / 422.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.2845, allocations: 354.7 kB / 422.6 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.2847, allocations: 109.1 kB / 422.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.285, allocations: 246.8 kB / 423 MB, free: 2.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005079/0.2855, allocations: 388.8 kB / 423.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2855, allocations: 4 kB / 423.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007407/0.2863, allocations: 460.9 kB / 423.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.2863, allocations: 8.594 kB / 423.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.2863, allocations: 8 kB / 423.8 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.2865, allocations: 40.78 kB / 423.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003505/0.2869, allocations: 103.9 kB / 423.9 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004414/0.2873, allocations: 0.5562 MB / 424.5 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.2875, allocations: 16 kB / 424.5 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.642e-05/0.2876, allocations: 24 kB / 424.5 MB, free: 372 kB / 334.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.0002554/0.2878, allocations: 225.7 kB / 424.8 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.2879, allocations: 39.53 kB / 424.8 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005989/0.2885, allocations: 326.1 kB / 425.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.2885, allocations: 4 kB / 425.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2885, allocations: 0 / 425.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.2885, allocations: 4 kB / 425.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001527/0.2901, allocations: 1.015 MB / 426.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.2901, allocations: 4 kB / 426.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003549/0.2904, allocations: 75.89 kB / 426.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001241/0.2906, allocations: 37 kB / 426.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.2906, allocations: 12 kB / 426.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003419/0.291, allocations: 0.5484 MB / 426.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.291, allocations: 0 / 426.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007734/0.2918, allocations: 0.5529 MB / 427.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.391e-05/0.2919, allocations: 108.6 kB / 427.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.174e-05/0.2919, allocations: 11.98 kB / 427.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.2921, allocations: 16 kB / 427.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.987e-05/0.2922, allocations: 19.97 kB / 427.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.2922, allocations: 12 kB / 427.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000267/0.2925, allocations: 215 kB / 427.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2925, allocations: 0 / 427.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005363/0.293, allocations: 116.1 kB / 427.9 MB, free: 12.86 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.0001904/0.2932, allocations: 123.2 kB / 428 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006214/0.2938, allocations: 315.4 kB / 428.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2939, allocations: 0 / 428.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002592/0.2941, allocations: 141.3 kB / 428.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005115/0.2946, allocations: 75.5 kB / 428.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.297, allocations: 1.56 MB / 430.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.2975, allocations: 0.921 MB / 431 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000169/0.2977, allocations: 47.52 kB / 431 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.634e-05/0.2978, allocations: 35.38 kB / 431.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2978, allocations: 3.938 kB / 431.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of Templates: time 0.008696/0.3065, allocations: 3.842 MB / 434.9 MB, free: 5.773 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches