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.0008887/0.0008886, allocations: 101.5 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009527/0.0009528, allocations: 201.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002206/0.0002206, allocations: 8 kB / 306.6 MB, free: 1.645 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09046/0.09069, allocations: 51.49 MB / 358.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00485/0.09558, allocations: 4.398 MB / 362.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003419/0.09903, allocations: 2.03 MB / 364.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007692/0.09984, allocations: 31.81 kB / 364.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004283/0.1003, allocations: 162.8 kB / 364.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007524/0.101, allocations: 307 kB / 365 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.1022, allocations: 347.3 kB / 365.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009625/0.1032, allocations: 0.6708 MB / 366 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005752/0.1038, allocations: 421.5 kB / 366.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003401/0.1041, allocations: 235 kB / 366.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.1044, allocations: 254.6 kB / 366.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.793e-05/0.1045, allocations: 32 kB / 366.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.1047, allocations: 83.84 kB / 367 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.1048, allocations: 123.5 kB / 367.1 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.105, allocations: 173.3 kB / 367.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007499/0.1057, allocations: 0.8922 MB / 368.2 MB, free: 3.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1057, allocations: 0 / 368.2 MB, free: 3.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1057, allocations: 0 / 368.2 MB, free: 3.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.1058, allocations: 0 / 368.2 MB, free: 3.984 MB / 302.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.001332/0.1071, allocations: 0.8891 MB / 369.1 MB, free: 3.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/0.1072, allocations: 12.03 kB / 369.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.1074, allocations: 90.97 kB / 369.2 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006397/0.1081, allocations: 0.4897 MB / 369.7 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.982e-05/0.1081, allocations: 66 kB / 369.7 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.1083, allocations: 83.91 kB / 369.8 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.1095, allocations: 0.7966 MB / 370.6 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/0.1096, allocations: 15.97 kB / 370.6 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.607e-05/0.1096, allocations: 32 kB / 370.6 MB, free: 1.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.1096, allocations: 24 kB / 370.7 MB, free: 1.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008878/0.1105, allocations: 499.6 kB / 371.2 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1777/0.2882, allocations: 2.888 MB / 374 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005683/0.2888, allocations: 230.3 kB / 374.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000173/0.289, allocations: 249.6 kB / 374.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.2891, allocations: 36.77 kB / 374.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.344e-06/0.2891, allocations: 1.094 kB / 374.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002601/0.2917, allocations: 1.263 MB / 375.8 MB, free: 17.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.2917, allocations: 58.28 kB / 375.9 MB, free: 17.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.292, allocations: 306.8 kB / 376.2 MB, free: 16.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.2921, allocations: 34.73 kB / 376.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.2923, allocations: 398.9 kB / 376.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.31e-05/0.2923, allocations: 131.6 kB / 376.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/0.2924, allocations: 9.844 kB / 376.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.184e-05/0.2925, allocations: 346.9 kB / 377.1 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.2927, allocations: 107.8 kB / 377.2 MB, free: 16.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002983/0.293, allocations: 255.1 kB / 377.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.2933, allocations: 152.4 kB / 377.6 MB, free: 16.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.2933, allocations: 6.75 kB / 377.6 MB, free: 16.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007166/0.294, allocations: 462.9 kB / 378 MB, free: 15.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.294, allocations: 6.469 kB / 378 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.2941, allocations: 9.094 kB / 378 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001899/0.2942, allocations: 35.02 kB / 378.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/0.2946, allocations: 113.7 kB / 378.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003003/0.2949, allocations: 0.5487 MB / 378.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001854/0.2951, allocations: 21.77 kB / 378.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.2952, allocations: 22.58 kB / 378.8 MB, free: 15.29 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002546/0.2954, allocations: 224.8 kB / 379 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.703e-05/0.2955, allocations: 37.97 kB / 379 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00058/0.2961, allocations: 325.2 kB / 379.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2961, allocations: 2.75 kB / 379.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.2961, allocations: 1.891 kB / 379.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.2961, allocations: 3.469 kB / 379.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.2975, allocations: 1.023 MB / 380.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2975, allocations: 2.25 kB / 380.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.2979, allocations: 81.48 kB / 380.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.298, allocations: 36.77 kB / 380.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.298, allocations: 13.44 kB / 380.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002047/0.2982, allocations: 0.5476 MB / 381.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.2982, allocations: 2.688 kB / 381.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006899/0.2989, allocations: 0.6119 MB / 381.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.872e-05/0.299, allocations: 108.3 kB / 381.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.2991, allocations: 11.97 kB / 381.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.2992, allocations: 10.94 kB / 381.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.2993, allocations: 19.41 kB / 381.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/0.2993, allocations: 18.34 kB / 381.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.2995, allocations: 205.3 kB / 382 MB, free: 13.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2995, allocations: 5.031 kB / 382.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005372/0.3001, allocations: 125.6 kB / 382.2 MB, free: 13.04 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001734/0.3003, allocations: 129.7 kB / 382.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006007/0.3009, allocations: 304.4 kB / 382.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3009, allocations: 1.156 kB / 382.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002541/0.3011, allocations: 139.8 kB / 382.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.3015, allocations: 61.41 kB / 382.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.3037, allocations: 2.004 MB / 384.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.3042, allocations: 0.9375 MB / 385.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.3043, allocations: 46.7 kB / 385.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.21e-05/0.3044, allocations: 30.66 kB / 385.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.3044, allocations: 3.938 kB / 385.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of Templates: time 0.008404/0.3128, allocations: 3.452 MB / 389.3 MB, free: 10.16 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches