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.001641/0.001641, allocations: 104.7 kB / 17.59 MB, free: 5.426 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.00197/0.001971, allocations: 191.3 kB / 18.51 MB, free: 4.504 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.409/1.409, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 43.77 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1142, allocations: 49.45 MB / 350.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00841/0.1227, allocations: 5.43 MB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004492/0.1272, allocations: 2.067 MB / 358.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.1283, allocations: 43.75 kB / 358.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000722/0.1291, allocations: 198.3 kB / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008352/0.1299, allocations: 170.4 kB / 358.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.1312, allocations: 395.1 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.1326, allocations: 1.017 MB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009904/0.1336, allocations: 0.6064 MB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005864/0.1342, allocations: 334.9 kB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006226/0.1348, allocations: 370.3 kB / 361.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001802/0.135, allocations: 92 kB / 361.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004146/0.1355, allocations: 147.9 kB / 361.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002299/0.1357, allocations: 199.5 kB / 361.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005984/0.1363, allocations: 441.9 kB / 362.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001373/0.1377, allocations: 1.137 MB / 363.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1377, allocations: 0 / 363.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1377, allocations: 0 / 363.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.793e-05/0.1378, allocations: 0 / 363.3 MB, free: 7.766 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.002161/0.1399, allocations: 1.045 MB / 364.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.14, allocations: 8.031 kB / 364.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.1402, allocations: 87.91 kB / 364.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00068/0.1409, allocations: 0.4948 MB / 365 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.891e-05/0.1409, allocations: 66.38 kB / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.1411, allocations: 84.28 kB / 365.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.1425, allocations: 0.8125 MB / 365.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/0.1425, allocations: 4 kB / 365.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.418e-05/0.1426, allocations: 36 kB / 366 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.271e-05/0.1426, allocations: 20 kB / 366 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009647/0.1436, allocations: 0.4957 MB / 366.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003192/0.1468, allocations: 2.895 MB / 369.4 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005512/0.1474, allocations: 219.2 kB / 369.6 MB, free: 1.246 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.1476, allocations: 112.8 kB / 369.7 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002879/0.1479, allocations: 247.2 kB / 369.9 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.1479, allocations: 42.56 kB / 370 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.974e-06/0.1479, allocations: 0 / 370 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.194/0.342, allocations: 1.251 MB / 371.2 MB, free: 25.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.342, allocations: 55.77 kB / 371.3 MB, free: 25.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004138/0.3425, allocations: 302.3 kB / 371.6 MB, free: 25.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.3425, allocations: 31.77 kB / 371.6 MB, free: 25.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.3427, allocations: 402.7 kB / 372 MB, free: 24.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.977e-05/0.3428, allocations: 134.8 kB / 372.1 MB, free: 24.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.343, allocations: 91.45 kB / 372.2 MB, free: 24.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.823e-05/0.3431, allocations: 346.9 kB / 372.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.3433, allocations: 111.4 kB / 372.7 MB, free: 24.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.3436, allocations: 255.4 kB / 372.9 MB, free: 24.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004944/0.3441, allocations: 384.3 kB / 373.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3441, allocations: 4.938 kB / 373.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007482/0.3449, allocations: 465.2 kB / 373.8 MB, free: 24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3449, allocations: 8.547 kB / 373.8 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.3449, allocations: 7.75 kB / 373.8 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000227/0.3452, allocations: 38.88 kB / 373.8 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000361/0.3455, allocations: 107.2 kB / 373.9 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002986/0.3459, allocations: 0.5574 MB / 374.5 MB, free: 23.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.3461, allocations: 15.77 kB / 374.5 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.3461, allocations: 23 kB / 374.5 MB, free: 23.43 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.0002979/0.3464, allocations: 222.6 kB / 374.7 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.341e-05/0.3465, allocations: 37.12 kB / 374.8 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007049/0.3472, allocations: 316 kB / 375.1 MB, free: 23.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.3472, allocations: 6.094 kB / 375.1 MB, free: 23.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3473, allocations: 0 / 375.1 MB, free: 23.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.3473, allocations: 6.094 kB / 375.1 MB, free: 23.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.3487, allocations: 1.018 MB / 376.1 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3487, allocations: 4.344 kB / 376.1 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003625/0.3491, allocations: 76.98 kB / 376.2 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000146/0.3493, allocations: 38.7 kB / 376.2 MB, free: 22.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.3493, allocations: 10.48 kB / 376.2 MB, free: 22.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002522/0.3496, allocations: 0.5439 MB / 376.8 MB, free: 21.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3496, allocations: 6.688 kB / 376.8 MB, free: 21.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000745/0.3503, allocations: 0.5514 MB / 377.3 MB, free: 21.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.362e-05/0.3504, allocations: 111.5 kB / 377.4 MB, free: 21.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.042e-05/0.3505, allocations: 14.19 kB / 377.5 MB, free: 21.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.3506, allocations: 8.766 kB / 377.5 MB, free: 21.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/0.3507, allocations: 27.86 kB / 377.5 MB, free: 21.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.3507, allocations: 9.406 kB / 377.5 MB, free: 21.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002318/0.351, allocations: 209.3 kB / 377.7 MB, free: 21.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.351, allocations: 4 kB / 377.7 MB, free: 21.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006155/0.3516, allocations: 121.8 kB / 377.8 MB, free: 21.28 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.000167/0.3518, allocations: 125.1 kB / 377.9 MB, free: 21.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007361/0.3525, allocations: 316.3 kB / 378.3 MB, free: 21.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3525, allocations: 0 / 378.3 MB, free: 21.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.3528, allocations: 137.1 kB / 378.4 MB, free: 21.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005372/0.3534, allocations: 69.86 kB / 378.5 MB, free: 21.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.3559, allocations: 1.636 MB / 380.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.3564, allocations: 0.9204 MB / 381 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.3566, allocations: 37.91 kB / 381.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3566, allocations: 3.828 kB / 381.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of Templates: time 0.0157/0.3723, allocations: 9.713 MB / 390.8 MB, free: 15.6 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