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.001519/0.001519, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001831/0.001831, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 62.11 kB / 306.9 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.09156, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006683/0.09828, allocations: 5.433 MB / 362.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003209/0.1015, allocations: 2.145 MB / 365 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003584/0.1019, allocations: 39.75 kB / 365.1 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004233/0.1023, allocations: 202.3 kB / 365.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000298/0.1026, allocations: 178.4 kB / 365.5 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007738/0.1034, allocations: 395 kB / 365.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008493/0.1043, allocations: 1.025 MB / 366.9 MB, free: 4.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007744/0.1051, allocations: 0.6143 MB / 367.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000382/0.1055, allocations: 330.9 kB / 367.8 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.1058, allocations: 370.2 kB / 368.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.1059, allocations: 92 kB / 368.3 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.1062, allocations: 156 kB / 368.4 MB, free: 3.078 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.1063, allocations: 203.3 kB / 368.6 MB, free: 2.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003297/0.1067, allocations: 434 kB / 369 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009473/0.1076, allocations: 1.149 MB / 370.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1076, allocations: 4 kB / 370.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1076, allocations: 3.938 kB / 370.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.1077, allocations: 0 / 370.2 MB, free: 1.293 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.001284/0.109, allocations: 1.037 MB / 371.2 MB, free: 208 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.109, allocations: 12.03 kB / 371.2 MB, free: 196 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002316/0.1092, allocations: 95.89 kB / 371.3 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1398/0.2491, allocations: 0.4996 MB / 371.8 MB, free: 20.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.207e-05/0.2491, allocations: 62.62 kB / 371.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.2493, allocations: 86.03 kB / 372 MB, free: 20.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.2506, allocations: 0.805 MB / 372.8 MB, free: 20.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.293e-05/0.2507, allocations: 6.938 kB / 372.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.604e-05/0.2507, allocations: 37.81 kB / 372.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.2508, allocations: 21.06 kB / 372.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009375/0.2517, allocations: 0.4992 MB / 373.3 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002982/0.2547, allocations: 2.891 MB / 376.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005036/0.2552, allocations: 215.1 kB / 376.4 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.2554, allocations: 104.5 kB / 376.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002142/0.2556, allocations: 250.3 kB / 376.8 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.2557, allocations: 37.41 kB / 376.8 MB, free: 17.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.2557, allocations: 3.562 kB / 376.8 MB, free: 17.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002081/0.2577, allocations: 1.261 MB / 378.1 MB, free: 16.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.24e-05/0.2578, allocations: 60.64 kB / 378.1 MB, free: 16.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.2581, allocations: 313 kB / 378.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.2581, allocations: 31.39 kB / 378.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.2583, allocations: 399.7 kB / 378.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7e-05/0.2583, allocations: 133.6 kB / 379 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.2585, allocations: 87.22 kB / 379.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.849e-05/0.2585, allocations: 351.8 kB / 379.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.2587, allocations: 106.5 kB / 379.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.259, allocations: 249.2 kB / 379.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004178/0.2594, allocations: 393.6 kB / 380.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2594, allocations: 6.969 kB / 380.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006545/0.2601, allocations: 462.1 kB / 380.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2601, allocations: 13.84 kB / 380.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2601, allocations: 5.312 kB / 380.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001764/0.2603, allocations: 38.81 kB / 380.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.2607, allocations: 111.2 kB / 380.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002646/0.2609, allocations: 0.5528 MB / 381.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.2611, allocations: 19.55 kB / 381.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.2612, allocations: 27 kB / 381.4 MB, free: 14.21 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.0002718/0.2615, allocations: 220.9 kB / 381.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.015e-05/0.2616, allocations: 37.77 kB / 381.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005844/0.2622, allocations: 315.5 kB / 381.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2622, allocations: 11.59 kB / 382 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2622, allocations: 0.7031 kB / 382 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.2622, allocations: 1.359 kB / 382 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.2635, allocations: 1.024 MB / 383 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2635, allocations: 1.75 kB / 383 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003833/0.2639, allocations: 80.92 kB / 383.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001223/0.2641, allocations: 30.56 kB / 383.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.2641, allocations: 9.234 kB / 383.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002048/0.2643, allocations: 0.5566 MB / 383.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.2643, allocations: 7.547 kB / 383.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007045/0.265, allocations: 0.5382 MB / 384.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.545e-05/0.2651, allocations: 111.7 kB / 384.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.2652, allocations: 11.98 kB / 384.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.2653, allocations: 9.297 kB / 384.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.318e-05/0.2654, allocations: 27.28 kB / 384.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.2654, allocations: 10.94 kB / 384.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.2656, allocations: 218.6 kB / 384.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2656, allocations: 0 / 384.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005427/0.2662, allocations: 125.1 kB / 384.7 MB, free: 12.06 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.0001551/0.2663, allocations: 119.6 kB / 384.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006397/0.267, allocations: 324.8 kB / 385.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.267, allocations: 0 / 385.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002687/0.2673, allocations: 145.5 kB / 385.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.2678, allocations: 66.19 kB / 385.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.27, allocations: 1.599 MB / 386.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.2704, allocations: 0.9211 MB / 387.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001903/0.2706, allocations: 48.44 kB / 387.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.2707, allocations: 31.39 kB / 387.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2707, allocations: 0 / 387.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of Templates: time 0.008402/0.2791, allocations: 3.757 MB / 391.7 MB, free: 8.969 MB / 302.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