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.001598/0.001598, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001883/0.001883, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 247.1 MB, free: 9.102 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 65.36 kB / 307.1 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1021, allocations: 50.53 MB / 357.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007043/0.1092, allocations: 5.434 MB / 363.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004201/0.1135, allocations: 2.079 MB / 365.1 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.1147, allocations: 35.81 kB / 365.2 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008179/0.1156, allocations: 166.8 kB / 365.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009284/0.1166, allocations: 146.8 kB / 365.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.1182, allocations: 343.4 kB / 365.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001665/0.1199, allocations: 1.032 MB / 366.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.1212, allocations: 0.6025 MB / 367.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007136/0.1219, allocations: 342.9 kB / 367.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006165/0.1226, allocations: 358.3 kB / 368.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.1228, allocations: 92 kB / 368.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004845/0.1233, allocations: 163.9 kB / 368.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002296/0.1235, allocations: 199.4 kB / 368.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005401/0.1241, allocations: 434 kB / 369 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.1252, allocations: 0.9433 MB / 370 MB, free: 1.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1252, allocations: 0 / 370 MB, free: 1.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.508e-06/0.1252, allocations: 0 / 370 MB, free: 1.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.55e-05/0.1252, allocations: 3.938 kB / 370 MB, free: 1.805 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.001835/0.1271, allocations: 1.04 MB / 371 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1272, allocations: 8.031 kB / 371 MB, free: 0.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002904/0.1274, allocations: 91.91 kB / 371.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007566/0.1282, allocations: 0.5063 MB / 371.6 MB, free: 72 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.464e-05/0.1283, allocations: 62.38 kB / 371.7 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.173/0.3013, allocations: 84.22 kB / 371.7 MB, free: 20.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.3036, allocations: 0.8034 MB / 372.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.824e-05/0.3037, allocations: 8.766 kB / 372.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.356e-05/0.3038, allocations: 34.97 kB / 372.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.3038, allocations: 23.25 kB / 372.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.3051, allocations: 0.4965 MB / 373.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003791/0.3089, allocations: 2.891 MB / 376 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005978/0.3095, allocations: 223.1 kB / 376.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.3097, allocations: 104.7 kB / 376.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002376/0.31, allocations: 250 kB / 376.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.31, allocations: 41.53 kB / 376.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.766e-06/0.31, allocations: 2.562 kB / 376.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002415/0.3124, allocations: 1.264 MB / 377.9 MB, free: 16.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.3125, allocations: 54.44 kB / 377.9 MB, free: 16.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003824/0.3129, allocations: 315.6 kB / 378.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.3129, allocations: 31.05 kB / 378.3 MB, free: 16.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.3131, allocations: 401.2 kB / 378.7 MB, free: 16.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.158e-05/0.3132, allocations: 135 kB / 378.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.3133, allocations: 82.5 kB / 378.9 MB, free: 16.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3134, allocations: 352 kB / 379.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.3136, allocations: 105.6 kB / 379.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002532/0.3139, allocations: 254.6 kB / 379.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004401/0.3143, allocations: 388.2 kB / 379.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.3143, allocations: 6.875 kB / 379.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007097/0.3151, allocations: 454 kB / 380.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3151, allocations: 10.75 kB / 380.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3151, allocations: 4.688 kB / 380.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001951/0.3153, allocations: 42.69 kB / 380.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.3157, allocations: 111.1 kB / 380.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002906/0.316, allocations: 0.5553 MB / 381.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.3162, allocations: 15.61 kB / 381.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.3163, allocations: 27.12 kB / 381.2 MB, free: 14.42 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.0002589/0.3165, allocations: 225.2 kB / 381.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.504e-05/0.3166, allocations: 34.33 kB / 381.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006137/0.3172, allocations: 315.3 kB / 381.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3172, allocations: 8.078 kB / 381.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3172, allocations: 3.938 kB / 381.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3173, allocations: 3.219 kB / 381.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.3188, allocations: 1.02 MB / 382.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3188, allocations: 6.031 kB / 382.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003521/0.3192, allocations: 84.45 kB / 382.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001304/0.3193, allocations: 30.34 kB / 382.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.3193, allocations: 9.531 kB / 382.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002141/0.3196, allocations: 0.5479 MB / 383.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3196, allocations: 1.438 kB / 383.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006592/0.3202, allocations: 0.5475 MB / 384 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.344e-05/0.3203, allocations: 103 kB / 384.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.425e-05/0.3204, allocations: 13.88 kB / 384.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.3205, allocations: 12.27 kB / 384.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.435e-05/0.3206, allocations: 27.88 kB / 384.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.3207, allocations: 10.8 kB / 384.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.3209, allocations: 212.6 kB / 384.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3209, allocations: 5.094 kB / 384.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006255/0.3216, allocations: 122.3 kB / 384.5 MB, free: 12.25 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.0002174/0.3218, allocations: 123.2 kB / 384.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007905/0.3226, allocations: 322 kB / 384.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3226, allocations: 0 / 384.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000294/0.3229, allocations: 141.6 kB / 385 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005667/0.3235, allocations: 73.23 kB / 385.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.3258, allocations: 1.981 MB / 387.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.3263, allocations: 0.92 MB / 388 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.59e-05/0.3264, allocations: 35.36 kB / 388.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3264, allocations: 0 / 388.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of Templates: time 0.01186/0.3382, allocations: 9.75 MB / 397.8 MB, free: 5.488 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