Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009276/0.0009276, allocations: 80.31 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 172.4 kB / 25.61 MB, free: 8.902 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9084/0.9084, allocations: 177.2 MB / 206.1 MB, free: 4.504 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.597e-05/1.699e-05, allocations: 10.2 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01155/0.01156, allocations: 5.174 MB / 279.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005992/0.01756, allocations: 2.085 MB / 281.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004908/0.01805, allocations: 47.62 kB / 281.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003837/0.01843, allocations: 214.1 kB / 281.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003115/0.01874, allocations: 178.3 kB / 281.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003701/0.02244, allocations: 410.9 kB / 282.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008486/0.02329, allocations: 1.036 MB / 283.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000529/0.02382, allocations: 397.6 kB / 283.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005394/0.02436, allocations: 0.5263 MB / 284.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.02467, allocations: 283.2 kB / 284.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.618e-05/0.02477, allocations: 92 kB / 284.6 MB, free: 9.945 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002136/0.02498, allocations: 151.8 kB / 284.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.02513, allocations: 211.3 kB / 284.9 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.02536, allocations: 295.3 kB / 285.2 MB, free: 9.301 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003669/0.02903, allocations: 0.6809 MB / 285.9 MB, free: 8.617 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.02903, allocations: 0 / 285.9 MB, free: 8.617 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.02903, allocations: 0 / 285.9 MB, free: 8.617 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.02904, allocations: 0 / 285.9 MB, free: 8.617 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.001075/0.03012, allocations: 1.088 MB / 287 MB, free: 7.492 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.03015, allocations: 12.03 kB / 287 MB, free: 7.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002585/0.03041, allocations: 164.4 kB / 287.2 MB, free: 7.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/0.03098, allocations: 490.3 kB / 287.7 MB, free: 6.812 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.03103, allocations: 62.38 kB / 287.7 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.403e-05/0.03112, allocations: 92.31 kB / 287.8 MB, free: 6.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003783/0.0349, allocations: 0.6027 MB / 288.4 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.03493, allocations: 8.156 kB / 288.4 MB, free: 6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/0.03498, allocations: 36.38 kB / 288.5 MB, free: 5.965 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.035, allocations: 31.94 kB / 288.5 MB, free: 5.934 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003865/0.03539, allocations: 229.6 kB / 288.7 MB, free: 5.707 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00635/0.04174, allocations: 2.892 MB / 291.6 MB, free: 2.707 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.04207, allocations: 155.6 kB / 291.8 MB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.161e-05/0.04214, allocations: 60.14 kB / 291.8 MB, free: 2.477 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.7e-05/0.04221, allocations: 19.98 kB / 291.8 MB, free: 2.457 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.04223, allocations: 45.39 kB / 291.9 MB, free: 2.402 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.054e-06/0.04224, allocations: 0 / 291.9 MB, free: 2.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001317/0.04355, allocations: 0.8241 MB / 292.7 MB, free: 1.512 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.04358, allocations: 59.34 kB / 292.8 MB, free: 1.441 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.04381, allocations: 358.4 kB / 293.1 MB, free: 1.074 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.04383, allocations: 29.7 kB / 293.1 MB, free: 1.039 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.04403, allocations: 466.4 kB / 293.6 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.986e-05/0.04411, allocations: 138.8 kB / 293.7 MB, free: 452 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.04421, allocations: 95.75 kB / 293.8 MB, free: 348 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.003368/0.04758, allocations: 0.5234 MB / 294.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.362e-05/0.04766, allocations: 48.95 kB / 294.4 MB, free: 15.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.04782, allocations: 238.6 kB / 294.6 MB, free: 15.44 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.0481, allocations: 337.3 kB / 295 MB, free: 15.02 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.04811, allocations: 0 / 295 MB, free: 15.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004144/0.04852, allocations: 356.7 kB / 295.3 MB, free: 14.66 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.04854, allocations: 8 kB / 295.3 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.04854, allocations: 4 kB / 295.3 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001197/0.04866, allocations: 39.66 kB / 295.4 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.04892, allocations: 107.8 kB / 295.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003069/0.04922, allocations: 0.8116 MB / 296.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.04935, allocations: 16 kB / 296.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.04938, allocations: 19.94 kB / 296.3 MB, free: 13.62 MB / 282.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.0001436/0.04953, allocations: 184.5 kB / 296.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.04959, allocations: 47.77 kB / 296.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003289/0.04992, allocations: 249.1 kB / 296.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.04992, allocations: 4 kB / 296.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.04992, allocations: 48 / 296.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.04993, allocations: 7.922 kB / 296.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008374/0.05077, allocations: 0.7423 MB / 297.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.05077, allocations: 4 kB / 297.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.05096, allocations: 75.89 kB / 297.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.534e-05/0.05102, allocations: 35.61 kB / 297.6 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.05104, allocations: 8 kB / 297.7 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002805/0.05132, allocations: 0.8 MB / 298.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.05132, allocations: 7.938 kB / 298.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004234/0.05174, allocations: 492.1 kB / 298.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.7e-05/0.05177, allocations: 31.83 kB / 299 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.0518, allocations: 8 kB / 299 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.377e-05/0.05187, allocations: 12 kB / 299 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.05191, allocations: 27.89 kB / 299 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.05192, allocations: 8 kB / 299 MB, free: 10.74 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.849e-05/0.05202, allocations: 223 kB / 299.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.05202, allocations: 0 / 299.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002958/0.05232, allocations: 127.9 kB / 299.4 MB, free: 10.4 MB / 282.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.0001387/0.05246, allocations: 129.1 kB / 299.5 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002592/0.05271, allocations: 216.2 kB / 299.7 MB, free: 10.05 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.62e-07/0.05272, allocations: 0 / 299.7 MB, free: 10.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.05282, allocations: 112.7 kB / 299.8 MB, free: 9.941 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.05313, allocations: 72 kB / 299.9 MB, free: 9.875 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.05478, allocations: 1.382 MB / 301.3 MB, free: 8.434 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.257e-05/0.05486, allocations: 150 kB / 301.4 MB, free: 8.266 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.159e-05/0.05495, allocations: 47.33 kB / 301.5 MB, free: 8.219 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.05507, allocations: 138.2 kB / 301.6 MB, free: 8.082 MB / 282.7 MB Notification: Performance of SimCode: time 5.62e-07/0.05507, allocations: 3.938 kB / 301.6 MB, free: 8.078 MB / 282.7 MB Notification: Performance of Templates: time 0.006989/0.06206, allocations: 3.934 MB / 305.5 MB, free: 4.223 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.81601821212098]