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.001697/0.001697, allocations: 115 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 213.8 kB / 18.27 MB, free: 5.098 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.437/1.437, allocations: 227.7 MB / 246.7 MB, free: 10.53 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.001938/0.001938, allocations: 68.17 kB / 306.7 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09311, allocations: 50.55 MB / 357.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007874/0.101, allocations: 5.422 MB / 362.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004112/0.1052, allocations: 2.079 MB / 364.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005132/0.1058, allocations: 43.69 kB / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004586/0.1063, allocations: 158.8 kB / 365 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003562/0.1066, allocations: 146.8 kB / 365.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008687/0.1075, allocations: 347.4 kB / 365.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.1086, allocations: 1.028 MB / 366.5 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008417/0.1094, allocations: 0.6104 MB / 367.1 MB, free: 4.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000459/0.1099, allocations: 338.8 kB / 367.4 MB, free: 4.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003969/0.1103, allocations: 366.3 kB / 367.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.1104, allocations: 96 kB / 367.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002619/0.1107, allocations: 155.9 kB / 368 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.1109, allocations: 199.4 kB / 368.2 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004171/0.1113, allocations: 438 kB / 368.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.1125, allocations: 1.149 MB / 369.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1125, allocations: 0 / 369.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1125, allocations: 0 / 369.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.1126, allocations: 0 / 369.8 MB, free: 1.672 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.001565/0.1141, allocations: 1.037 MB / 370.8 MB, free: 0.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1142, allocations: 8.031 kB / 370.9 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.1144, allocations: 99.89 kB / 371 MB, free: 488 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1502/0.2646, allocations: 0.4945 MB / 371.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-05/0.2647, allocations: 64.16 kB / 371.5 MB, free: 20.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001964/0.2649, allocations: 86.88 kB / 371.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.2665, allocations: 0.7983 MB / 372.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.715e-05/0.2666, allocations: 12.97 kB / 372.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.88e-05/0.2666, allocations: 34.62 kB / 372.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.2667, allocations: 21.19 kB / 372.5 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009417/0.2676, allocations: 0.4934 MB / 373 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.2706, allocations: 2.901 MB / 375.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005202/0.2712, allocations: 222.6 kB / 376.1 MB, free: 17.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.2713, allocations: 102.3 kB / 376.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002325/0.2716, allocations: 254.7 kB / 376.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/0.2716, allocations: 33.88 kB / 376.5 MB, free: 17.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.693e-06/0.2716, allocations: 0 / 376.5 MB, free: 17.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002174/0.2738, allocations: 1.255 MB / 377.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.184e-05/0.2738, allocations: 65.23 kB / 377.8 MB, free: 16.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.2741, allocations: 313 kB / 378.1 MB, free: 16.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.2741, allocations: 30.59 kB / 378.1 MB, free: 16.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.2743, allocations: 403.8 kB / 378.5 MB, free: 16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.31e-05/0.2744, allocations: 137.5 kB / 378.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.2745, allocations: 83.73 kB / 378.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.73e-05/0.2746, allocations: 347.4 kB / 379.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.2748, allocations: 107.1 kB / 379.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.275, allocations: 248.2 kB / 379.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004226/0.2755, allocations: 397.9 kB / 379.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2755, allocations: 1.156 kB / 379.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006297/0.2761, allocations: 458.8 kB / 380.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.2761, allocations: 7.125 kB / 380.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2762, allocations: 8.438 kB / 380.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001681/0.2763, allocations: 35.03 kB / 380.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003314/0.2767, allocations: 111 kB / 380.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002572/0.2769, allocations: 0.56 MB / 381 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.2771, allocations: 15.62 kB / 381 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.2772, allocations: 22.58 kB / 381 MB, free: 14.19 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.0002129/0.2774, allocations: 231.1 kB / 381.2 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.578e-05/0.2775, allocations: 32.72 kB / 381.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005424/0.278, allocations: 330.8 kB / 381.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.278, allocations: 4.25 kB / 381.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.278, allocations: 0 / 381.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.2781, allocations: 6 kB / 381.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.2793, allocations: 1.022 MB / 382.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2793, allocations: 0 / 382.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003329/0.2797, allocations: 83.38 kB / 382.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001123/0.2798, allocations: 29.59 kB / 382.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.2798, allocations: 9.969 kB / 382.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001976/0.28, allocations: 0.5488 MB / 383.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.28, allocations: 5.953 kB / 383.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006335/0.2807, allocations: 0.5396 MB / 383.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.852e-05/0.2807, allocations: 105.1 kB / 383.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.486e-05/0.2808, allocations: 16.92 kB / 383.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.281, allocations: 12.81 kB / 384 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.281, allocations: 27.27 kB / 384 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.281, allocations: 17.58 kB / 384 MB, free: 12.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.2812, allocations: 213.7 kB / 384.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2812, allocations: 0.7812 kB / 384.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00047/0.2817, allocations: 122.9 kB / 384.3 MB, free: 12.02 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.0001369/0.2819, allocations: 127.1 kB / 384.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006114/0.2825, allocations: 323.4 kB / 384.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2825, allocations: 0 / 384.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.2828, allocations: 140.1 kB / 384.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.2833, allocations: 69.66 kB / 385 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002109/0.2854, allocations: 1.923 MB / 386.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.2858, allocations: 0.92 MB / 387.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.2859, allocations: 48.39 kB / 387.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.282e-05/0.286, allocations: 31.89 kB / 387.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.286, allocations: 4 kB / 387.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of Templates: time 0.009356/0.2954, allocations: 3.727 MB / 391.6 MB, free: 8.68 MB / 302.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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