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.001565/0.001565, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001272/0.001272, allocations: 216.5 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2404, allocations: 50.55 MB / 409.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006122/0.2465, allocations: 5.432 MB / 414.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003104/0.2497, allocations: 2.141 MB / 416.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000396/0.2501, allocations: 43.75 kB / 416.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004268/0.2505, allocations: 198.3 kB / 417.1 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.2509, allocations: 182.4 kB / 417.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008347/0.2517, allocations: 399 kB / 417.6 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000897/0.2526, allocations: 1.025 MB / 418.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007462/0.2534, allocations: 0.6025 MB / 419.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004008/0.2538, allocations: 350.8 kB / 419.6 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.2541, allocations: 366.3 kB / 419.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.2543, allocations: 92 kB / 420 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.2545, allocations: 155.9 kB / 420.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.2547, allocations: 207.3 kB / 420.4 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003446/0.255, allocations: 430 kB / 420.8 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.2561, allocations: 1.188 MB / 422 MB, free: 4.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2561, allocations: 3.938 kB / 422 MB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2561, allocations: 0 / 422 MB, free: 4.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.2561, allocations: 0 / 422 MB, free: 4.723 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.001333/0.2574, allocations: 1.037 MB / 423 MB, free: 3.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2575, allocations: 8.031 kB / 423 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002341/0.2577, allocations: 103.8 kB / 423.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007197/0.2585, allocations: 0.5182 MB / 423.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.586e-05/0.2585, allocations: 58.38 kB / 423.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.2586, allocations: 100.2 kB / 423.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.2599, allocations: 0.8008 MB / 424.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.667e-05/0.26, allocations: 8 kB / 424.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.26, allocations: 32 kB / 424.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.2601, allocations: 24 kB / 424.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009861/0.2611, allocations: 0.4957 MB / 425.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003063/0.2641, allocations: 2.852 MB / 428 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.2647, allocations: 222.7 kB / 428.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.2649, allocations: 104.8 kB / 428.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002229/0.2651, allocations: 247.3 kB / 428.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.2652, allocations: 39.06 kB / 428.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.2652, allocations: 0 / 428.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002225/0.2674, allocations: 1.257 MB / 429.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.2675, allocations: 55.41 kB / 429.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.2678, allocations: 317.5 kB / 430.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.2678, allocations: 29.7 kB / 430.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/0.2681, allocations: 406.5 kB / 430.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.2682, allocations: 134.1 kB / 430.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.2683, allocations: 82.27 kB / 430.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.2684, allocations: 354.7 kB / 431.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.2686, allocations: 113 kB / 431.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.2689, allocations: 250.7 kB / 431.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000479/0.2694, allocations: 396.7 kB / 432 MB, free: 10.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2694, allocations: 0 / 432 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006441/0.2701, allocations: 461.3 kB / 432.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2701, allocations: 6.969 kB / 432.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.2701, allocations: 8 kB / 432.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.2703, allocations: 32.84 kB / 432.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003416/0.2706, allocations: 111.8 kB / 432.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004673/0.2711, allocations: 0.5721 MB / 433.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.2713, allocations: 16 kB / 433.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.2714, allocations: 20 kB / 433.2 MB, free: 8.883 MB / 350.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.0002868/0.2716, allocations: 220.6 kB / 433.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.2717, allocations: 39.62 kB / 433.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006107/0.2723, allocations: 329.7 kB / 433.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.2723, allocations: 0 / 433.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2724, allocations: 7.938 kB / 433.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.2724, allocations: 3.984 kB / 433.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/0.2738, allocations: 1.016 MB / 434.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2738, allocations: 0 / 434.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.2741, allocations: 75.91 kB / 434.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001094/0.2742, allocations: 32.84 kB / 434.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.2743, allocations: 11.98 kB / 434.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003014/0.2746, allocations: 0.5485 MB / 435.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2746, allocations: 8.094 kB / 435.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006741/0.2753, allocations: 0.5408 MB / 436 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.293e-05/0.2754, allocations: 108.7 kB / 436.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.2754, allocations: 8 kB / 436.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.2755, allocations: 12 kB / 436.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.2756, allocations: 19.97 kB / 436.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.2756, allocations: 16 kB / 436.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.2758, allocations: 219.1 kB / 436.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2758, allocations: 0 / 436.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004382/0.2763, allocations: 128 kB / 436.5 MB, free: 5.395 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.0001625/0.2764, allocations: 119.3 kB / 436.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005848/0.277, allocations: 313.7 kB / 436.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.277, allocations: 0 / 436.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002465/0.2773, allocations: 139.8 kB / 437.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.2778, allocations: 72.02 kB / 437.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.28, allocations: 1.568 MB / 438.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.2806, allocations: 0.921 MB / 439.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001374/0.2807, allocations: 50.95 kB / 439.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.052e-05/0.2808, allocations: 31.44 kB / 439.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2808, allocations: 0 / 439.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of Templates: time 0.008456/0.2893, allocations: 3.849 MB / 443.6 MB, free: 14.3 MB / 366.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/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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches