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.001148/0.001148, allocations: 108.2 kB / 17.74 MB, free: 5.359 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.001153/0.001153, allocations: 183.1 kB / 18.67 MB, free: 4.441 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.41/1.41, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 47.94 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3099, allocations: 49.44 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006828/0.3168, allocations: 5.425 MB / 406.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003934/0.3208, allocations: 2.071 MB / 408.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008314/0.3216, allocations: 39.81 kB / 408.9 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005368/0.3222, allocations: 206.2 kB / 409.1 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.3226, allocations: 166.4 kB / 409.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008963/0.3235, allocations: 391.1 kB / 409.7 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.3246, allocations: 1.036 MB / 410.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007993/0.3254, allocations: 0.5987 MB / 411.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003915/0.3258, allocations: 346.8 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003992/0.3262, allocations: 366.3 kB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.3263, allocations: 92 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002613/0.3266, allocations: 147.9 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001773/0.3268, allocations: 199.4 kB / 412.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003751/0.3271, allocations: 437.9 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.3283, allocations: 1.181 MB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3284, allocations: 0 / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3284, allocations: 0 / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.3284, allocations: 4 kB / 414.1 MB, free: 12.14 MB / 334.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.001535/0.3299, allocations: 1.026 MB / 415.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.33, allocations: 8.031 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.3302, allocations: 91.91 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007786/0.331, allocations: 0.5336 MB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.398e-05/0.331, allocations: 62.38 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.3311, allocations: 84.38 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3326, allocations: 0.8087 MB / 416.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.3326, allocations: 3.906 kB / 416.7 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.298e-05/0.3327, allocations: 36 kB / 416.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.3327, allocations: 24 kB / 416.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009356/0.3337, allocations: 0.4918 MB / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003183/0.3369, allocations: 2.86 MB / 420.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005553/0.3374, allocations: 227.1 kB / 420.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.3376, allocations: 109.2 kB / 420.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002448/0.3379, allocations: 243.3 kB / 420.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.3379, allocations: 42.56 kB / 420.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.435e-06/0.3379, allocations: 0 / 420.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002392/0.3403, allocations: 1.249 MB / 421.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.3404, allocations: 63.34 kB / 422 MB, free: 3.762 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.3407, allocations: 304.5 kB / 422.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.3407, allocations: 33.64 kB / 422.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.341, allocations: 402.5 kB / 422.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.74e-05/0.3411, allocations: 130.1 kB / 422.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.3412, allocations: 90.16 kB / 422.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3414, allocations: 350.7 kB / 423.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.3416, allocations: 109.1 kB / 423.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.3419, allocations: 258.7 kB / 423.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005113/0.3424, allocations: 384.8 kB / 424 MB, free: 1.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3424, allocations: 4 kB / 424 MB, free: 1.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006649/0.3431, allocations: 456.9 kB / 424.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3431, allocations: 8 kB / 424.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3431, allocations: 4 kB / 424.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001889/0.3433, allocations: 41.38 kB / 424.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.3437, allocations: 111.8 kB / 424.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003745/0.3441, allocations: 0.5524 MB / 425.2 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.3443, allocations: 16 kB / 425.2 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.3443, allocations: 24 kB / 425.2 MB, free: 348 kB / 334.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.0002852/0.3446, allocations: 225.6 kB / 425.4 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.3447, allocations: 39.59 kB / 425.5 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005991/0.3453, allocations: 322.3 kB / 425.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3453, allocations: 4 kB / 425.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3453, allocations: 4 kB / 425.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.3453, allocations: 0 / 425.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/0.3467, allocations: 1.015 MB / 426.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.3467, allocations: 7.984 kB / 426.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003581/0.347, allocations: 75.89 kB / 426.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001496/0.3472, allocations: 36.84 kB / 426.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.3472, allocations: 8.156 kB / 426.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003095/0.3475, allocations: 0.5523 MB / 427.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3476, allocations: 0 / 427.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007118/0.3483, allocations: 0.5528 MB / 428 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.829e-05/0.3484, allocations: 104.6 kB / 428.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.84e-05/0.3484, allocations: 15.98 kB / 428.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.3486, allocations: 8 kB / 428.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.994e-05/0.3486, allocations: 23.97 kB / 428.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.3487, allocations: 19.94 kB / 428.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.3489, allocations: 211.1 kB / 428.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3489, allocations: 0 / 428.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005202/0.3494, allocations: 119.9 kB / 428.5 MB, free: 12.83 MB / 350.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.0002073/0.3496, allocations: 123.2 kB / 428.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.3503, allocations: 307.5 kB / 429 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3503, allocations: 0 / 429 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002452/0.3505, allocations: 145.2 kB / 429.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000515/0.351, allocations: 67.84 kB / 429.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.3535, allocations: 1.597 MB / 430.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/0.354, allocations: 0.9248 MB / 431.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.3541, allocations: 31.44 kB / 431.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of SimCode: time 4.8e-07/0.3541, allocations: 0 / 431.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of Templates: time 0.01235/0.3665, allocations: 9.794 MB / 441.5 MB, free: 15.78 MB / 366.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