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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 148.2 kB / 24.8 MB, free: 9.34 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9183/0.9183, allocations: 173.3 MB / 201.4 MB, free: 9.234 MB / 186.7 MB " [Timeout remaining time 179] 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=1000,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=1000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.235e-06/2.235e-06, allocations: 0 / 268.4 MB, free: 6.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.72e-05/2.944e-05, allocations: 6.25 kB / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01343/0.01346, allocations: 5.173 MB / 273.6 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00451/0.01797, allocations: 2.009 MB / 275.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008093/0.01878, allocations: 51.56 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004585/0.01924, allocations: 214.1 kB / 275.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004306/0.01967, allocations: 186.3 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000851/0.02052, allocations: 391 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001098/0.02162, allocations: 1.044 MB / 277.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000672/0.02229, allocations: 401.5 kB / 277.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000714/0.023, allocations: 0.5147 MB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004629/0.02347, allocations: 279.2 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.02361, allocations: 92 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002672/0.02388, allocations: 147.8 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.02405, allocations: 211.3 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003433/0.02439, allocations: 299.3 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009307/0.02532, allocations: 0.677 MB / 280 MB, free: 10.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.02533, allocations: 0 / 280 MB, free: 10.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.02533, allocations: 0 / 280 MB, free: 10.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.005e-05/0.02535, allocations: 0 / 280 MB, free: 10.52 MB / 266.7 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.001469/0.02682, allocations: 1.076 MB / 281.1 MB, free: 9.402 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.02686, allocations: 12.92 kB / 281.1 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001988/0.02706, allocations: 164.4 kB / 281.3 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006588/0.02772, allocations: 482.3 kB / 281.8 MB, free: 8.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.177e-05/0.02777, allocations: 66.38 kB / 281.8 MB, free: 8.664 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.02788, allocations: 92.31 kB / 281.9 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009406/0.02882, allocations: 0.6027 MB / 282.5 MB, free: 7.922 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.035e-05/0.02886, allocations: 8.141 kB / 282.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.569e-05/0.02892, allocations: 36.38 kB / 282.6 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.02894, allocations: 23.94 kB / 282.6 MB, free: 7.855 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005153/0.02945, allocations: 237.6 kB / 282.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003104/0.03256, allocations: 2.869 MB / 285.7 MB, free: 4.645 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004107/0.03297, allocations: 166.4 kB / 285.8 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.966e-05/0.03306, allocations: 59.59 kB / 285.9 MB, free: 4.406 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.52e-05/0.03315, allocations: 30.5 kB / 285.9 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.03318, allocations: 37.39 kB / 286 MB, free: 4.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.204e-06/0.03318, allocations: 0 / 286 MB, free: 4.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001615/0.0348, allocations: 0.8531 MB / 286.8 MB, free: 3.414 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.03483, allocations: 51.41 kB / 286.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.03512, allocations: 346 kB / 287.2 MB, free: 2.996 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.03514, allocations: 33.7 kB / 287.2 MB, free: 2.957 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002581/0.0354, allocations: 458.4 kB / 287.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.0355, allocations: 146.8 kB / 287.8 MB, free: 2.359 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.03562, allocations: 91.81 kB / 287.9 MB, free: 2.258 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.0358, allocations: 0.5195 MB / 288.4 MB, free: 1.727 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.355e-05/0.03589, allocations: 48.95 kB / 288.5 MB, free: 1.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.03611, allocations: 246.6 kB / 288.7 MB, free: 1.355 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000358/0.03647, allocations: 337.1 kB / 289.1 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.03647, allocations: 4 kB / 289.1 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005294/0.037, allocations: 367.8 kB / 289.4 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.03702, allocations: 8 kB / 289.4 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.03703, allocations: 4 kB / 289.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.03719, allocations: 32.27 kB / 289.5 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.03751, allocations: 111.8 kB / 289.6 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1072/0.1447, allocations: 0.8058 MB / 290.4 MB, free: 28.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.1449, allocations: 14.62 kB / 290.4 MB, free: 28.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.33e-05/0.145, allocations: 21.59 kB / 290.4 MB, free: 28.59 MB / 266.7 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.0001817/0.1452, allocations: 185.2 kB / 290.6 MB, free: 28.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.419e-05/0.1452, allocations: 49.09 kB / 290.6 MB, free: 28.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003935/0.1456, allocations: 237.6 kB / 290.9 MB, free: 28.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1456, allocations: 3.312 kB / 290.9 MB, free: 28.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.686e-06/0.1456, allocations: 2.938 kB / 290.9 MB, free: 28.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1456, allocations: 2.953 kB / 290.9 MB, free: 28.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009445/0.1466, allocations: 0.7407 MB / 291.6 MB, free: 28.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.1466, allocations: 2.125 kB / 291.6 MB, free: 28.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.1468, allocations: 81.36 kB / 291.7 MB, free: 28.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001169/0.147, allocations: 30.72 kB / 291.7 MB, free: 28.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.09e-05/0.147, allocations: 10.34 kB / 291.8 MB, free: 28.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001911/0.1472, allocations: 0.8066 MB / 292.6 MB, free: 27.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1472, allocations: 4.312 kB / 292.6 MB, free: 27.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004532/0.1476, allocations: 492.6 kB / 293 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.515e-05/0.1477, allocations: 36.39 kB / 293.1 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.513e-05/0.1477, allocations: 13.16 kB / 293.1 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1478, allocations: 6.375 kB / 293.1 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.1479, allocations: 36.41 kB / 293.1 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.1479, allocations: 7.562 kB / 293.1 MB, free: 26.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001352/0.148, allocations: 223.9 kB / 293.4 MB, free: 26.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.148, allocations: 1.469 kB / 293.4 MB, free: 26.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004915/0.1485, allocations: 119.7 kB / 293.5 MB, free: 26.84 MB / 266.7 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.0001284/0.1487, allocations: 118.9 kB / 293.6 MB, free: 26.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003546/0.149, allocations: 213.9 kB / 293.8 MB, free: 26.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.149, allocations: 1.062 kB / 293.8 MB, free: 26.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.1492, allocations: 110.1 kB / 293.9 MB, free: 26.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.1496, allocations: 69 kB / 294 MB, free: 26.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.1514, allocations: 1.38 MB / 295.4 MB, free: 25.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.1515, allocations: 147.4 kB / 295.5 MB, free: 25.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.1517, allocations: 46.36 kB / 295.5 MB, free: 25.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.1518, allocations: 136.3 kB / 295.7 MB, free: 25.77 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.1518, allocations: 1.219 kB / 295.7 MB, free: 25.77 MB / 266.7 MB Notification: Performance of Templates: time 0.008814/0.1606, allocations: 3.862 MB / 299.5 MB, free: 25.32 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.69384812284261]