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.001125/0.001125, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 56.78 kB / 306.3 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1126, allocations: 50.52 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00642/0.1191, allocations: 5.433 MB / 362.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003589/0.1227, allocations: 2.11 MB / 364.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000922/0.1236, allocations: 35.81 kB / 364.4 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005564/0.1242, allocations: 166.8 kB / 364.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005174/0.1247, allocations: 134.9 kB / 364.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009403/0.1257, allocations: 347.4 kB / 365 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.1268, allocations: 0.9739 MB / 366 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007757/0.1276, allocations: 0.5396 MB / 366.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004257/0.128, allocations: 298.8 kB / 366.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003775/0.1284, allocations: 338.4 kB / 367.1 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.1285, allocations: 56 kB / 367.2 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000252/0.1288, allocations: 111.9 kB / 367.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.1289, allocations: 171.3 kB / 367.5 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003632/0.1293, allocations: 397.9 kB / 367.9 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009347/0.1302, allocations: 1.106 MB / 369 MB, free: 2.281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1303, allocations: 0 / 369 MB, free: 2.281 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1303, allocations: 0 / 369 MB, free: 2.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.111e-05/0.1303, allocations: 0 / 369 MB, free: 2.281 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.001593/0.1319, allocations: 1.034 MB / 370 MB, free: 1.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.1319, allocations: 12.02 kB / 370 MB, free: 1.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002678/0.1322, allocations: 95.91 kB / 370.1 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006623/0.1329, allocations: 0.4986 MB / 370.6 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.883e-05/0.133, allocations: 66.31 kB / 370.7 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.1331, allocations: 88.36 kB / 370.7 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1614/0.2945, allocations: 0.7975 MB / 371.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.2946, allocations: 10 kB / 371.6 MB, free: 20.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-05/0.2946, allocations: 35.72 kB / 371.6 MB, free: 20.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.2947, allocations: 20.91 kB / 371.6 MB, free: 20.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.2957, allocations: 0.4974 MB / 372.1 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002976/0.2987, allocations: 2.901 MB / 375 MB, free: 18.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005281/0.2993, allocations: 219.6 kB / 375.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.2995, allocations: 106.4 kB / 375.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002086/0.2997, allocations: 249.8 kB / 375.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.475e-05/0.2997, allocations: 33.59 kB / 375.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.833e-06/0.2997, allocations: 3.938 kB / 375.6 MB, free: 17.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002181/0.3019, allocations: 1.253 MB / 376.9 MB, free: 17.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.259e-05/0.3019, allocations: 62.94 kB / 376.9 MB, free: 16.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.3022, allocations: 312.5 kB / 377.2 MB, free: 16.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.3022, allocations: 31.14 kB / 377.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.3024, allocations: 403.6 kB / 377.7 MB, free: 16.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.808e-05/0.3025, allocations: 129.7 kB / 377.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.3026, allocations: 88.39 kB / 377.9 MB, free: 16.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.719e-05/0.3026, allocations: 347.3 kB / 378.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.3029, allocations: 111.3 kB / 378.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000241/0.3031, allocations: 253 kB / 378.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.3036, allocations: 390.2 kB / 378.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3036, allocations: 1.594 kB / 378.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006617/0.3042, allocations: 457.6 kB / 379.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.3043, allocations: 9.797 kB / 379.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3043, allocations: 4.438 kB / 379.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00018/0.3045, allocations: 36.89 kB / 379.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003524/0.3048, allocations: 112.5 kB / 379.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002552/0.3051, allocations: 0.5561 MB / 380.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.3053, allocations: 16.84 kB / 380.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.3053, allocations: 22.59 kB / 380.1 MB, free: 14.62 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.0002252/0.3056, allocations: 224.6 kB / 380.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.968e-05/0.3056, allocations: 42.98 kB / 380.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005833/0.3062, allocations: 318.8 kB / 380.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3062, allocations: 3.25 kB / 380.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3062, allocations: 0 / 380.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.3063, allocations: 9.047 kB / 380.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.3076, allocations: 1.02 MB / 381.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3076, allocations: 3.141 kB / 381.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003732/0.308, allocations: 82.56 kB / 381.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/0.3081, allocations: 36.59 kB / 381.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.3081, allocations: 10.48 kB / 381.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002055/0.3083, allocations: 0.5414 MB / 382.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3083, allocations: 1.281 kB / 382.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006541/0.309, allocations: 0.5442 MB / 383 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.725e-05/0.3091, allocations: 104.1 kB / 383.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.3091, allocations: 17.58 kB / 383.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.3093, allocations: 8.203 kB / 383.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.408e-05/0.3093, allocations: 32.5 kB / 383.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.3094, allocations: 14.38 kB / 383.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.3096, allocations: 213.5 kB / 383.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3096, allocations: 2.516 kB / 383.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.3101, allocations: 117.7 kB / 383.5 MB, free: 12.45 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.0001329/0.3102, allocations: 128.2 kB / 383.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000554/0.3108, allocations: 301.5 kB / 383.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3108, allocations: 1.312 kB / 383.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002644/0.3111, allocations: 143.8 kB / 384 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/0.3116, allocations: 65.02 kB / 384.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.3138, allocations: 1.932 MB / 386 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.3142, allocations: 0.9247 MB / 386.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001706/0.3144, allocations: 48.7 kB / 387 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.413e-05/0.3144, allocations: 30.38 kB / 387 MB, free: 10.04 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3145, allocations: 0 / 387 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Templates: time 0.008141/0.3226, allocations: 3.589 MB / 390.6 MB, free: 9.25 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