Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 108 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 193.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001015/0.001015, allocations: 50.89 kB / 300.8 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1007, allocations: 49.45 MB / 350.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006713/0.1075, allocations: 5.413 MB / 355.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003586/0.1111, allocations: 2.021 MB / 357.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009692/0.1121, allocations: 35.81 kB / 357.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000586/0.1127, allocations: 158.8 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005905/0.1134, allocations: 142.8 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009564/0.1143, allocations: 347.4 kB / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001117/0.1154, allocations: 1.017 MB / 359.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008732/0.1163, allocations: 0.6026 MB / 360 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004723/0.1168, allocations: 334.9 kB / 360.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004362/0.1173, allocations: 362.3 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.1174, allocations: 96 kB / 360.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000278/0.1177, allocations: 155.9 kB / 360.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.1179, allocations: 195.4 kB / 361.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004134/0.1183, allocations: 441.9 kB / 361.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008425/0.1191, allocations: 0.9316 MB / 362.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1192, allocations: 0 / 362.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1192, allocations: 0 / 362.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.344e-05/0.1192, allocations: 0 / 362.4 MB, free: 8.469 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.001662/0.1209, allocations: 1.04 MB / 363.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.1209, allocations: 8.031 kB / 363.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.1211, allocations: 87.91 kB / 363.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006584/0.1218, allocations: 0.4986 MB / 364.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/0.1218, allocations: 62.38 kB / 364.1 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.1219, allocations: 88.28 kB / 364.2 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.1233, allocations: 0.8087 MB / 365 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.843e-05/0.1234, allocations: 0 / 365 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.34e-05/0.1235, allocations: 36 kB / 365.1 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.1235, allocations: 24 kB / 365.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009544/0.1244, allocations: 0.4957 MB / 365.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.1278, allocations: 2.895 MB / 368.5 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005646/0.1283, allocations: 222.7 kB / 368.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.1285, allocations: 104.7 kB / 368.8 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002743/0.1288, allocations: 255.3 kB / 369 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.1289, allocations: 34.56 kB / 369.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.373e-06/0.1289, allocations: 0 / 369.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002299/0.1312, allocations: 1.254 MB / 370.3 MB, free: 156 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.1312, allocations: 67.28 kB / 370.4 MB, free: 76 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1652/0.2964, allocations: 304.6 kB / 370.7 MB, free: 25.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-05/0.2965, allocations: 29.89 kB / 370.7 MB, free: 25.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/0.2968, allocations: 399.5 kB / 371.1 MB, free: 25.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.2969, allocations: 138.9 kB / 371.2 MB, free: 25.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.297, allocations: 87.91 kB / 371.3 MB, free: 25.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.936e-05/0.2971, allocations: 351.4 kB / 371.7 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.2974, allocations: 110.4 kB / 371.8 MB, free: 25.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.2977, allocations: 249.3 kB / 372 MB, free: 24.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004746/0.2982, allocations: 391.6 kB / 372.4 MB, free: 24.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.2982, allocations: 1.844 kB / 372.4 MB, free: 24.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007419/0.2989, allocations: 454.8 kB / 372.9 MB, free: 24.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.299, allocations: 11.66 kB / 372.9 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.299, allocations: 3.906 kB / 372.9 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002108/0.2992, allocations: 42.34 kB / 372.9 MB, free: 24.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003605/0.2996, allocations: 113.1 kB / 373 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002908/0.2999, allocations: 0.5497 MB / 373.6 MB, free: 24.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.3001, allocations: 20.34 kB / 373.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/0.3001, allocations: 21.56 kB / 373.6 MB, free: 24.07 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.0002755/0.3004, allocations: 219.1 kB / 373.8 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.221e-05/0.3005, allocations: 35.94 kB / 373.9 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000587/0.3011, allocations: 325.7 kB / 374.2 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3011, allocations: 3.938 kB / 374.2 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3011, allocations: 0.5156 kB / 374.2 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3011, allocations: 2.922 kB / 374.2 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.3025, allocations: 1.008 MB / 375.2 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.3025, allocations: 8.781 kB / 375.2 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003483/0.3028, allocations: 81.39 kB / 375.3 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001222/0.303, allocations: 30.83 kB / 375.3 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.303, allocations: 11.62 kB / 375.3 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002103/0.3032, allocations: 0.5529 MB / 375.9 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.3032, allocations: 2.156 kB / 375.9 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006586/0.3039, allocations: 0.5538 MB / 376.4 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.008e-05/0.3039, allocations: 108.6 kB / 376.5 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.566e-05/0.304, allocations: 7.797 kB / 376.5 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.3042, allocations: 12.19 kB / 376.6 MB, free: 22.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/0.3042, allocations: 31.19 kB / 376.6 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/0.3043, allocations: 15.28 kB / 376.6 MB, free: 22.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001959/0.3045, allocations: 208.2 kB / 376.8 MB, free: 21.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3045, allocations: 0.875 kB / 376.8 MB, free: 21.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000509/0.305, allocations: 118.6 kB / 376.9 MB, free: 21.94 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.0001594/0.3052, allocations: 119.2 kB / 377 MB, free: 21.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006382/0.3058, allocations: 316.6 kB / 377.4 MB, free: 21.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3058, allocations: 1.562 kB / 377.4 MB, free: 21.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002496/0.3061, allocations: 148.1 kB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.3066, allocations: 59.36 kB / 377.6 MB, free: 21.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.3089, allocations: 1.976 MB / 379.5 MB, free: 20.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004721/0.3094, allocations: 0.9206 MB / 380.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.995e-05/0.3095, allocations: 34.69 kB / 380.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3095, allocations: 0 / 380.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01419/0.3237, allocations: 9.727 MB / 390.2 MB, free: 15.93 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches