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.0007424/0.0007425, allocations: 97.53 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008691/0.000869, allocations: 197.5 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001982/0.0001983, allocations: 4 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.08845, allocations: 51.54 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004563/0.09305, allocations: 4.679 MB / 363.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.09565, allocations: 1.987 MB / 365.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003709/0.09604, allocations: 31.81 kB / 365.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00032/0.09637, allocations: 158.8 kB / 365.5 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002529/0.09663, allocations: 134.8 kB / 365.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006082/0.09725, allocations: 259.4 kB / 365.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009161/0.09818, allocations: 0.9033 MB / 366.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005776/0.09876, allocations: 421.5 kB / 367.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.09905, allocations: 239 kB / 367.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002731/0.09933, allocations: 266.6 kB / 367.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.09939, allocations: 28 kB / 367.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.09958, allocations: 87.97 kB / 367.8 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.0997, allocations: 131.5 kB / 367.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.09985, allocations: 173.3 kB / 368.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007292/0.1006, allocations: 0.8845 MB / 369 MB, free: 3.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1006, allocations: 0 / 369 MB, free: 3.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1006, allocations: 4 kB / 369 MB, free: 3.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.1006, allocations: 0 / 369 MB, free: 3.238 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.001135/0.1018, allocations: 0.8916 MB / 369.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1018, allocations: 16.03 kB / 369.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000216/0.102, allocations: 102.9 kB / 370 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005875/0.1026, allocations: 497.5 kB / 370.5 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.007e-05/0.1027, allocations: 69.95 kB / 370.5 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.1028, allocations: 87.91 kB / 370.6 MB, free: 1.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.1041, allocations: 0.7927 MB / 371.4 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/0.1042, allocations: 15.84 kB / 371.4 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/0.1042, allocations: 35.98 kB / 371.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.426e-05/0.1042, allocations: 20 kB / 371.5 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009024/0.1052, allocations: 0.4957 MB / 372 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1609/0.2661, allocations: 2.884 MB / 374.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005492/0.2667, allocations: 222.3 kB / 375.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.2669, allocations: 106.8 kB / 375.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001652/0.267, allocations: 254 kB / 375.4 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.529e-05/0.2671, allocations: 35.3 kB / 375.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.924e-06/0.2671, allocations: 0 / 375.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002143/0.2692, allocations: 1.267 MB / 376.7 MB, free: 16.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.2693, allocations: 54.84 kB / 376.8 MB, free: 16.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.2696, allocations: 306.7 kB / 377.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.2696, allocations: 30.7 kB / 377.1 MB, free: 16.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.2698, allocations: 405.9 kB / 377.5 MB, free: 16.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/0.2698, allocations: 135.1 kB / 377.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.502e-05/0.2699, allocations: 10.75 kB / 377.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.639e-05/0.2699, allocations: 351.1 kB / 378 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.2701, allocations: 107.6 kB / 378.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.2704, allocations: 251.3 kB / 378.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.2706, allocations: 145.2 kB / 378.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2706, allocations: 1.375 kB / 378.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006097/0.2712, allocations: 462.3 kB / 378.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.2712, allocations: 10.84 kB / 379 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.2713, allocations: 4.062 kB / 379 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.2714, allocations: 39.55 kB / 379 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000336/0.2718, allocations: 115.7 kB / 379.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002378/0.272, allocations: 0.5527 MB / 379.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.2722, allocations: 20.75 kB / 379.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.604e-05/0.2722, allocations: 21.64 kB / 379.7 MB, free: 14.52 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.0002266/0.2725, allocations: 217.7 kB / 379.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.287e-05/0.2725, allocations: 42.66 kB / 380 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005409/0.2731, allocations: 335.6 kB / 380.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2731, allocations: 3.469 kB / 380.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.2731, allocations: 1.719 kB / 380.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2731, allocations: 2.203 kB / 380.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.2743, allocations: 1.027 MB / 381.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.2744, allocations: 4.719 kB / 381.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003439/0.2747, allocations: 83.02 kB / 381.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.2748, allocations: 29.02 kB / 381.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.2749, allocations: 14.8 kB / 381.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001898/0.275, allocations: 0.5528 MB / 382 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2751, allocations: 2 kB / 382 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000617/0.2757, allocations: 0.5515 MB / 382.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.2757, allocations: 103.9 kB / 382.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.741e-05/0.2758, allocations: 13.22 kB / 382.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.276, allocations: 13.25 kB / 382.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.276, allocations: 24.25 kB / 382.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.276, allocations: 14.47 kB / 382.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001746/0.2762, allocations: 210.1 kB / 382.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2762, allocations: 1.094 kB / 382.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004807/0.2767, allocations: 117.6 kB / 383 MB, free: 12.34 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.0001352/0.2769, allocations: 119.8 kB / 383.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005345/0.2774, allocations: 308.2 kB / 383.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.2774, allocations: 0 / 383.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.2776, allocations: 145.7 kB / 383.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.2781, allocations: 62.91 kB / 383.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.2802, allocations: 2.019 MB / 385.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.2806, allocations: 0.9247 MB / 386.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.2808, allocations: 48.56 kB / 386.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.389e-05/0.2809, allocations: 30.59 kB / 386.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2809, allocations: 1.031 kB / 386.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of Templates: time 0.007887/0.2888, allocations: 3.475 MB / 390.2 MB, free: 9.215 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