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.001273/0.001273, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.00122, allocations: 59.05 kB / 306.9 MB, free: 1.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09664, allocations: 50.52 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006946/0.1036, allocations: 5.438 MB / 362.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003941/0.1076, allocations: 2.099 MB / 365 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.1087, allocations: 35.81 kB / 365 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007123/0.1095, allocations: 166.8 kB / 365.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007158/0.1102, allocations: 146.8 kB / 365.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.1113, allocations: 343.4 kB / 365.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001129/0.1124, allocations: 0.9738 MB / 366.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007355/0.1132, allocations: 0.5435 MB / 367.2 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004166/0.1136, allocations: 298.9 kB / 367.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.1139, allocations: 342.3 kB / 367.8 MB, free: 4.078 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.954e-05/0.114, allocations: 52 kB / 367.8 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.1143, allocations: 111.9 kB / 367.9 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.1144, allocations: 159.4 kB / 368.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003192/0.1147, allocations: 405.9 kB / 368.5 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007442/0.1155, allocations: 0.9082 MB / 369.4 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1155, allocations: 0 / 369.4 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1155, allocations: 4 kB / 369.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.1155, allocations: 0 / 369.4 MB, free: 2.449 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.001411/0.1169, allocations: 1.022 MB / 370.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.117, allocations: 8.031 kB / 370.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002473/0.1172, allocations: 103.8 kB / 370.5 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006026/0.1179, allocations: 0.5024 MB / 371 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.023e-05/0.1179, allocations: 70.38 kB / 371.1 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.118, allocations: 84.38 kB / 371.2 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1649/0.2829, allocations: 0.8 MB / 372 MB, free: 20.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.986e-05/0.283, allocations: 9.578 kB / 372 MB, free: 20.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.597e-05/0.2831, allocations: 38.22 kB / 372 MB, free: 20.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.701e-05/0.2831, allocations: 20.53 kB / 372.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.2843, allocations: 0.4914 MB / 372.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003254/0.2876, allocations: 2.887 MB / 375.4 MB, free: 18.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000545/0.2881, allocations: 237.7 kB / 375.7 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.2884, allocations: 106.1 kB / 375.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002047/0.2886, allocations: 252.7 kB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.2886, allocations: 31.97 kB / 376.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.824e-06/0.2886, allocations: 0.75 kB / 376.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002662/0.2913, allocations: 1.251 MB / 377.3 MB, free: 16.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.2913, allocations: 59.53 kB / 377.4 MB, free: 16.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003958/0.2917, allocations: 314.3 kB / 377.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.2918, allocations: 33.23 kB / 377.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.292, allocations: 406.3 kB / 378.1 MB, free: 16.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.2921, allocations: 130.5 kB / 378.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.2923, allocations: 83.34 kB / 378.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.2924, allocations: 347.7 kB / 378.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.2926, allocations: 110.8 kB / 378.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.2929, allocations: 252.9 kB / 379 MB, free: 15.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004422/0.2934, allocations: 393.8 kB / 379.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2934, allocations: 1.375 kB / 379.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006717/0.294, allocations: 459.1 kB / 379.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.2941, allocations: 6.812 kB / 379.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.2941, allocations: 7.891 kB / 379.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001831/0.2943, allocations: 35.19 kB / 379.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003481/0.2946, allocations: 111 kB / 380 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002921/0.2949, allocations: 0.5624 MB / 380.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.2951, allocations: 16.17 kB / 380.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.2952, allocations: 21.2 kB / 380.6 MB, free: 14.54 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 (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.0002494/0.2954, allocations: 225.7 kB / 380.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.984e-05/0.2955, allocations: 39.41 kB / 380.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005872/0.2961, allocations: 328.4 kB / 381.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2961, allocations: 3.75 kB / 381.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2961, allocations: 1.125 kB / 381.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.2961, allocations: 2.016 kB / 381.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.2976, allocations: 1.023 MB / 382.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2976, allocations: 1.344 kB / 382.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.298, allocations: 80.3 kB / 382.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001306/0.2981, allocations: 35.17 kB / 382.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.2981, allocations: 12.19 kB / 382.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002163/0.2984, allocations: 0.5513 MB / 382.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.2984, allocations: 2.312 kB / 382.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006758/0.299, allocations: 0.5449 MB / 383.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.075e-05/0.2991, allocations: 103.9 kB / 383.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.787e-05/0.2992, allocations: 13.67 kB / 383.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.2993, allocations: 6.938 kB / 383.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.144e-05/0.2994, allocations: 31.86 kB / 383.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.2994, allocations: 10.78 kB / 383.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002046/0.2996, allocations: 218.4 kB / 383.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2996, allocations: 0 / 383.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005524/0.3002, allocations: 117.2 kB / 383.9 MB, free: 12.36 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 (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.00018/0.3004, allocations: 127.1 kB / 384 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005864/0.301, allocations: 308 kB / 384.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.301, allocations: 5.094 kB / 384.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002645/0.3013, allocations: 136.6 kB / 384.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.3018, allocations: 63.91 kB / 384.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.3042, allocations: 1.969 MB / 386.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004415/0.3047, allocations: 0.9198 MB / 387.4 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.393e-05/0.3048, allocations: 38.81 kB / 387.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3048, allocations: 0 / 387.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of Templates: time 0.013/0.3178, allocations: 9.757 MB / 397.2 MB, free: 5.66 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/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