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.001063/0.001063, allocations: 108.8 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.4 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 59.78 kB / 306.4 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08837/0.08957, allocations: 50.54 MB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006794/0.09641, allocations: 5.426 MB / 362.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003431/0.09987, allocations: 2.083 MB / 364.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008263/0.1007, allocations: 39.75 kB / 364.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005674/0.1013, allocations: 162.8 kB / 364.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005354/0.1019, allocations: 146.8 kB / 364.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009008/0.1028, allocations: 347.4 kB / 365.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.1038, allocations: 1.017 MB / 366.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007536/0.1046, allocations: 0.6104 MB / 366.8 MB, free: 4.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003664/0.105, allocations: 338.9 kB / 367.1 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.1053, allocations: 358.3 kB / 367.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1055, allocations: 92 kB / 367.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.1057, allocations: 163.9 kB / 367.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.1059, allocations: 203.4 kB / 367.9 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003378/0.1062, allocations: 437.9 kB / 368.3 MB, free: 2.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009543/0.1072, allocations: 1.153 MB / 369.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1072, allocations: 0 / 369.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1072, allocations: 0 / 369.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.1072, allocations: 0 / 369.5 MB, free: 1.566 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.001347/0.1086, allocations: 1.037 MB / 370.5 MB, free: 488 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.1086, allocations: 12.03 kB / 370.5 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002588/0.1089, allocations: 95.91 kB / 370.6 MB, free: 380 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1616/0.2705, allocations: 0.4972 MB / 371.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.727e-05/0.2706, allocations: 63.05 kB / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.2709, allocations: 87.36 kB / 371.3 MB, free: 19.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.2726, allocations: 0.8039 MB / 372.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.631e-05/0.2726, allocations: 9.016 kB / 372.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.96e-05/0.2727, allocations: 35.25 kB / 372.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.2727, allocations: 20.39 kB / 372.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.2738, allocations: 0.4995 MB / 372.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00331/0.2772, allocations: 2.895 MB / 375.5 MB, free: 17.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005944/0.2778, allocations: 218.7 kB / 375.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.278, allocations: 106.2 kB / 375.9 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000219/0.2782, allocations: 255.5 kB / 376.1 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.2782, allocations: 33.41 kB / 376.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.713e-06/0.2782, allocations: 0 / 376.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.00225/0.2805, allocations: 1.264 MB / 377.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.2805, allocations: 55.72 kB / 377.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.2808, allocations: 314.8 kB / 377.8 MB, free: 16.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.2809, allocations: 31.08 kB / 377.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.281, allocations: 398.6 kB / 378.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.093e-05/0.2811, allocations: 138.8 kB / 378.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.2812, allocations: 86.97 kB / 378.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.468e-05/0.2813, allocations: 348.8 kB / 378.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.2815, allocations: 105.2 kB / 378.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.2818, allocations: 254.1 kB / 379.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004457/0.2822, allocations: 392.5 kB / 379.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.2823, allocations: 5.281 kB / 379.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006932/0.283, allocations: 459.6 kB / 379.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.283, allocations: 6.469 kB / 379.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.283, allocations: 4.25 kB / 380 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001913/0.2832, allocations: 34.47 kB / 380 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003546/0.2836, allocations: 112.9 kB / 380.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003179/0.2839, allocations: 0.5641 MB / 380.7 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.2841, allocations: 19.23 kB / 380.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.2842, allocations: 22.16 kB / 380.7 MB, free: 13.99 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.0002546/0.2844, allocations: 215.7 kB / 380.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.477e-05/0.2845, allocations: 36.5 kB / 380.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006173/0.2851, allocations: 324.5 kB / 381.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2852, allocations: 6.188 kB / 381.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2852, allocations: 2.75 kB / 381.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.2852, allocations: 1.828 kB / 381.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.2866, allocations: 1.02 MB / 382.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2866, allocations: 1.281 kB / 382.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003564/0.287, allocations: 82.42 kB / 382.4 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001189/0.2871, allocations: 29.67 kB / 382.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.2872, allocations: 11.23 kB / 382.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002133/0.2874, allocations: 0.5586 MB / 383 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2874, allocations: 1.562 kB / 383 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006814/0.2881, allocations: 0.5426 MB / 383.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.226e-05/0.2881, allocations: 111.8 kB / 383.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.974e-05/0.2882, allocations: 8.75 kB / 383.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.2884, allocations: 8.703 kB / 383.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.2884, allocations: 23.92 kB / 383.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.2885, allocations: 10.33 kB / 383.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.2887, allocations: 221.5 kB / 383.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.01e-07/0.2887, allocations: 0 / 383.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005085/0.2892, allocations: 122.6 kB / 384 MB, free: 11.83 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.0001859/0.2894, allocations: 122.3 kB / 384.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007878/0.2902, allocations: 323.8 kB / 384.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2902, allocations: 0 / 384.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.2905, allocations: 141.5 kB / 384.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005975/0.2911, allocations: 73.72 kB / 384.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.2941, allocations: 1.93 MB / 386.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005653/0.2946, allocations: 0.919 MB / 387.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.2949, allocations: 52 kB / 387.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.542e-05/0.2949, allocations: 36.06 kB / 387.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.295, allocations: 0 / 387.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of Templates: time 0.009522/0.3045, allocations: 3.723 MB / 391.3 MB, free: 8.535 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches