Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001442/0.001442, allocations: 119.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 206.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.43/1.43, allocations: 227.7 MB / 247.9 MB, free: 10.24 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 72.02 kB / 359.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2349, allocations: 50.55 MB / 410.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007057/0.242, allocations: 5.44 MB / 415.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003957/0.2459, allocations: 2.153 MB / 417.8 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008648/0.2468, allocations: 35.81 kB / 417.8 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006004/0.2474, allocations: 206.2 kB / 418 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004715/0.2479, allocations: 170.5 kB / 418.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.2489, allocations: 411 kB / 418.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.25, allocations: 1.009 MB / 419.6 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006455/0.2506, allocations: 429.1 kB / 420 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004549/0.2511, allocations: 346.8 kB / 420.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000424/0.2515, allocations: 362.3 kB / 420.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.2516, allocations: 92 kB / 420.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002911/0.2519, allocations: 155.9 kB / 421 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.2521, allocations: 211.4 kB / 421.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004091/0.2525, allocations: 426 kB / 421.6 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.2538, allocations: 1.198 MB / 422.8 MB, free: 4.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2538, allocations: 0 / 422.8 MB, free: 4.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2538, allocations: 0 / 422.8 MB, free: 4.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.2538, allocations: 4 kB / 422.8 MB, free: 4.82 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.001497/0.2553, allocations: 1.056 MB / 423.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2554, allocations: 12.03 kB / 423.9 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.2556, allocations: 100.4 kB / 424 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008068/0.2564, allocations: 0.5262 MB / 424.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.832e-05/0.2565, allocations: 62.38 kB / 424.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.2566, allocations: 88.33 kB / 424.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.258, allocations: 0.8087 MB / 425.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.258, allocations: 0 / 425.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.521e-05/0.2581, allocations: 36 kB / 425.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.562e-05/0.2581, allocations: 24 kB / 425.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009794/0.2591, allocations: 0.4918 MB / 426 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003369/0.2625, allocations: 2.873 MB / 428.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005484/0.263, allocations: 199.8 kB / 429.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.2632, allocations: 104.7 kB / 429.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002319/0.2634, allocations: 247.3 kB / 429.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.2635, allocations: 39.06 kB / 429.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.2635, allocations: 0 / 429.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002404/0.2659, allocations: 1.265 MB / 430.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.2659, allocations: 59.34 kB / 430.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.2662, allocations: 309.7 kB / 431.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.2663, allocations: 33.7 kB / 431.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/0.2666, allocations: 411.7 kB / 431.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.2667, allocations: 138.8 kB / 431.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.2668, allocations: 82.22 kB / 431.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.267, allocations: 362.7 kB / 432.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.2672, allocations: 105.1 kB / 432.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.2675, allocations: 246.7 kB / 432.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005585/0.268, allocations: 396.6 kB / 432.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2681, allocations: 0 / 432.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000758/0.2688, allocations: 465.8 kB / 433.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.2688, allocations: 8 kB / 433.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.2688, allocations: 12.02 kB / 433.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001781/0.269, allocations: 40.77 kB / 433.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003542/0.2694, allocations: 115.8 kB / 433.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004131/0.2698, allocations: 0.5524 MB / 434 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.27, allocations: 16 kB / 434 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.27, allocations: 20 kB / 434 MB, free: 8.949 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.0002723/0.2703, allocations: 221.7 kB / 434.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.887e-05/0.2703, allocations: 39.77 kB / 434.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006186/0.271, allocations: 318.2 kB / 434.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.271, allocations: 0 / 434.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.271, allocations: 4 kB / 434.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.271, allocations: 7.984 kB / 434.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.2725, allocations: 1.02 MB / 435.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2725, allocations: 0 / 435.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.2728, allocations: 84 kB / 435.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001244/0.2729, allocations: 32.84 kB / 435.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.273, allocations: 15.98 kB / 435.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003734/0.2733, allocations: 0.5484 MB / 436.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.2734, allocations: 4.031 kB / 436.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007937/0.2741, allocations: 0.5379 MB / 436.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.637e-05/0.2742, allocations: 112.9 kB / 436.9 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.2743, allocations: 12 kB / 437 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.2744, allocations: 8 kB / 437 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.146e-05/0.2745, allocations: 23.97 kB / 437 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.2745, allocations: 12 kB / 437 MB, free: 5.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.2747, allocations: 219.2 kB / 437.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2747, allocations: 0 / 437.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004994/0.2752, allocations: 128 kB / 437.3 MB, free: 5.453 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.0001779/0.2754, allocations: 126.7 kB / 437.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006334/0.2761, allocations: 295.9 kB / 437.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2761, allocations: 5.188 kB / 437.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002958/0.2764, allocations: 136.1 kB / 437.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005027/0.2769, allocations: 60.3 kB / 438 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.2794, allocations: 1.601 MB / 439.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005687/0.2799, allocations: 0.9248 MB / 440.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.2801, allocations: 47.33 kB / 440.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.352e-05/0.2802, allocations: 35.44 kB / 440.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2802, allocations: 0 / 440.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of Templates: time 0.009671/0.2898, allocations: 3.927 MB / 444.5 MB, free: 14.26 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches