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.001064/0.001064, allocations: 102.8 kB / 16.51 MB, free: 6.645 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.001631/0.001631, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.31/1.31, allocations: 222.9 MB / 241.1 MB, free: 15.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009606/0.0009606, allocations: 56.59 kB / 299.9 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08187/0.08285, allocations: 49.44 MB / 349.4 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005998/0.08889, allocations: 5.42 MB / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00303/0.09195, allocations: 2.044 MB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007831/0.09275, allocations: 35.81 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006012/0.0934, allocations: 158.8 kB / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005064/0.09392, allocations: 142.8 kB / 357.2 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008812/0.09481, allocations: 339.4 kB / 357.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.09586, allocations: 0.9584 MB / 358.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000685/0.09655, allocations: 0.5474 MB / 359 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000313/0.09688, allocations: 286.9 kB / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002918/0.09718, allocations: 346.2 kB / 359.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.355e-05/0.09726, allocations: 52 kB / 359.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002066/0.09748, allocations: 112 kB / 359.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.09763, allocations: 163.4 kB / 360 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.09795, allocations: 393.9 kB / 360.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008261/0.09878, allocations: 1.098 MB / 361.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.09879, allocations: 0 / 361.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.82e-07/0.0988, allocations: 0 / 361.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.09882, allocations: 0 / 361.4 MB, free: 8.707 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.001298/0.1001, allocations: 1.041 MB / 362.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.1002, allocations: 8.031 kB / 362.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.1003, allocations: 87.91 kB / 362.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005663/0.1009, allocations: 498.7 kB / 363.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.592e-05/0.1009, allocations: 66.38 kB / 363.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.101, allocations: 92.27 kB / 363.2 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.1023, allocations: 0.8087 MB / 364 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.1024, allocations: 3.938 kB / 364 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.901e-05/0.1024, allocations: 36 kB / 364.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.1025, allocations: 24 kB / 364.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009247/0.1034, allocations: 0.4918 MB / 364.6 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002873/0.1063, allocations: 2.895 MB / 367.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005041/0.1068, allocations: 218.7 kB / 367.7 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.107, allocations: 104.8 kB / 367.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000231/0.1072, allocations: 259.3 kB / 368 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.1072, allocations: 38.56 kB / 368.1 MB, free: 1.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.573e-06/0.1072, allocations: 0 / 368.1 MB, free: 1.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002119/0.1094, allocations: 1.257 MB / 369.3 MB, free: 392 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.1094, allocations: 55.41 kB / 369.4 MB, free: 324 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/0.1097, allocations: 308.4 kB / 369.7 MB, free: 0 / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.1377/0.2474, allocations: 29.95 kB / 369.7 MB, free: 25.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002313/0.2476, allocations: 391.8 kB / 370.1 MB, free: 25.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.022e-05/0.2477, allocations: 139.8 kB / 370.2 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.2478, allocations: 84.09 kB / 370.3 MB, free: 25.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.654e-05/0.2479, allocations: 351.3 kB / 370.7 MB, free: 25.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/0.2481, allocations: 107.9 kB / 370.8 MB, free: 25.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.2484, allocations: 250.1 kB / 371 MB, free: 25.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004342/0.2489, allocations: 392 kB / 371.4 MB, free: 24.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.2489, allocations: 1.375 kB / 371.4 MB, free: 24.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007379/0.2496, allocations: 458.7 kB / 371.8 MB, free: 24.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.2497, allocations: 7.328 kB / 371.9 MB, free: 24.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.2497, allocations: 8.125 kB / 371.9 MB, free: 24.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/0.2499, allocations: 39.06 kB / 371.9 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/0.2502, allocations: 114.5 kB / 372 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002493/0.2505, allocations: 0.5572 MB / 372.6 MB, free: 24.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.2507, allocations: 16.91 kB / 372.6 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-05/0.2507, allocations: 24.88 kB / 372.6 MB, free: 24.18 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.0002362/0.251, allocations: 217.3 kB / 372.8 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.889e-05/0.2511, allocations: 37.16 kB / 372.9 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005592/0.2516, allocations: 321.7 kB / 373.2 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2516, allocations: 4.25 kB / 373.2 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2516, allocations: 0 / 373.2 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.2517, allocations: 2.016 kB / 373.2 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.253, allocations: 1.014 MB / 374.2 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.253, allocations: 2 kB / 374.2 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.2533, allocations: 83.97 kB / 374.3 MB, free: 23.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001165/0.2535, allocations: 36.64 kB / 374.3 MB, free: 23.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.2535, allocations: 9.422 kB / 374.3 MB, free: 23.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002049/0.2537, allocations: 0.546 MB / 374.9 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2537, allocations: 1.594 kB / 374.9 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006432/0.2544, allocations: 0.5529 MB / 375.4 MB, free: 22.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.2544, allocations: 108.4 kB / 375.5 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/0.2545, allocations: 13.56 kB / 375.5 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.2546, allocations: 8.156 kB / 375.5 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.961e-05/0.2547, allocations: 35.55 kB / 375.6 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.2547, allocations: 12.81 kB / 375.6 MB, free: 22.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001788/0.2549, allocations: 210.3 kB / 375.8 MB, free: 22.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2549, allocations: 0 / 375.8 MB, free: 22.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.2554, allocations: 120.8 kB / 375.9 MB, free: 22.05 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.0001534/0.2556, allocations: 119 kB / 376 MB, free: 21.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005724/0.2562, allocations: 301.9 kB / 376.3 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2562, allocations: 0 / 376.3 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000257/0.2565, allocations: 145.8 kB / 376.5 MB, free: 21.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.257, allocations: 60.45 kB / 376.5 MB, free: 21.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.2591, allocations: 1.938 MB / 378.5 MB, free: 20.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.2595, allocations: 0.9268 MB / 379.4 MB, free: 19.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001555/0.2597, allocations: 48.36 kB / 379.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.236e-05/0.2597, allocations: 31.81 kB / 379.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2597, allocations: 0 / 379.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of Templates: time 0.009572/0.2693, allocations: 3.582 MB / 383.1 MB, free: 19.34 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/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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches