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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009835/0.0009835, allocations: 84.25 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001613/0.001613, allocations: 163.7 kB / 25.61 MB, free: 8.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8909/0.8909, allocations: 177 MB / 205.9 MB, free: 4.465 MB / 186.7 MB " [Timeout remaining time 179] 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=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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 274.1 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.597e-05/1.716e-05, allocations: 7.062 kB / 274.1 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004438/0.004455, allocations: 5.191 MB / 279.3 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00313/0.007585, allocations: 2.078 MB / 281.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005498/0.008135, allocations: 51.56 kB / 281.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003921/0.008527, allocations: 202.2 kB / 281.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003515/0.008878, allocations: 186.2 kB / 281.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007379/0.009616, allocations: 406.9 kB / 282.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008609/0.01048, allocations: 1.04 MB / 283.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005229/0.011, allocations: 393.6 kB / 283.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005528/0.01155, allocations: 0.5302 MB / 284.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000311/0.01186, allocations: 275.2 kB / 284.4 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.432e-05/0.01196, allocations: 92 kB / 284.5 MB, free: 9.938 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00021/0.01217, allocations: 163.8 kB / 284.7 MB, free: 9.777 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.01231, allocations: 207.3 kB / 284.9 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002394/0.01255, allocations: 295.3 kB / 285.2 MB, free: 9.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006673/0.01322, allocations: 0.6849 MB / 285.9 MB, free: 8.598 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.01322, allocations: 0 / 285.9 MB, free: 8.598 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.01322, allocations: 0 / 285.9 MB, free: 8.598 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.01323, allocations: 0 / 285.9 MB, free: 8.598 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.00109/0.01432, allocations: 1.076 MB / 286.9 MB, free: 7.484 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.01435, allocations: 16.02 kB / 286.9 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/0.0146, allocations: 168.3 kB / 287.1 MB, free: 7.305 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005551/0.01515, allocations: 490.3 kB / 287.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.685e-05/0.0152, allocations: 62.38 kB / 287.6 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.729e-05/0.0153, allocations: 92.31 kB / 287.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009948/0.01629, allocations: 0.6027 MB / 288.3 MB, free: 5.992 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.01632, allocations: 8.172 kB / 288.3 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.023e-05/0.01637, allocations: 36.38 kB / 288.4 MB, free: 5.949 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.01639, allocations: 23.94 kB / 288.4 MB, free: 5.926 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003987/0.01679, allocations: 233.7 kB / 288.6 MB, free: 5.695 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002275/0.01906, allocations: 2.88 MB / 291.5 MB, free: 2.707 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.01938, allocations: 155.6 kB / 291.7 MB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.965e-05/0.01946, allocations: 68.06 kB / 291.7 MB, free: 2.469 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.247e-05/0.01952, allocations: 19.98 kB / 291.8 MB, free: 2.449 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.01954, allocations: 45.39 kB / 291.8 MB, free: 2.395 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.01954, allocations: 0 / 291.8 MB, free: 2.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.00127/0.02081, allocations: 0.8341 MB / 292.6 MB, free: 1.492 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/0.02084, allocations: 55.41 kB / 292.7 MB, free: 1.426 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.02107, allocations: 354.4 kB / 293 MB, free: 1.062 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.02109, allocations: 33.7 kB / 293.1 MB, free: 1.023 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.02129, allocations: 454.4 kB / 293.5 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.273e-05/0.02137, allocations: 146.8 kB / 293.7 MB, free: 440 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.02148, allocations: 99.77 kB / 293.7 MB, free: 332 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.02164, allocations: 0.5195 MB / 294.3 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.186e-05/0.02171, allocations: 44.95 kB / 294.3 MB, free: 15.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.02188, allocations: 246.6 kB / 294.6 MB, free: 15.42 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.02216, allocations: 333.4 kB / 294.9 MB, free: 15.01 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.02216, allocations: 4 kB / 294.9 MB, free: 15.01 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006405/0.0228, allocations: 356.1 kB / 295.2 MB, free: 14.65 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.02281, allocations: 8.594 kB / 295.2 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.02282, allocations: 4 kB / 295.2 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001137/0.02293, allocations: 35.66 kB / 295.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.0232, allocations: 111.8 kB / 295.4 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003203/0.02352, allocations: 0.8116 MB / 296.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.02365, allocations: 12 kB / 296.2 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.806e-05/0.02368, allocations: 23.94 kB / 296.2 MB, free: 13.61 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.0001451/0.02382, allocations: 188.4 kB / 296.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.173e-05/0.02388, allocations: 47.77 kB / 296.5 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003218/0.0242, allocations: 245.2 kB / 296.7 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.02421, allocations: 4 kB / 296.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.02421, allocations: 0 / 296.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.02422, allocations: 3.938 kB / 296.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008289/0.02505, allocations: 0.7446 MB / 297.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.02505, allocations: 0 / 297.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.0253, allocations: 84.05 kB / 297.5 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.97e-05/0.02538, allocations: 27.67 kB / 297.6 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.0254, allocations: 8 kB / 297.6 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002692/0.02567, allocations: 0.8039 MB / 298.4 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.02567, allocations: 0 / 298.4 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004229/0.02609, allocations: 491.1 kB / 298.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.02613, allocations: 35.77 kB / 298.9 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.02616, allocations: 8 kB / 298.9 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.02628, allocations: 12.03 kB / 298.9 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.584e-05/0.02632, allocations: 39.91 kB / 298.9 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.02634, allocations: 8 kB / 299 MB, free: 10.72 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001299/0.02647, allocations: 227 kB / 299.2 MB, free: 10.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02647, allocations: 0 / 299.2 MB, free: 10.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000408/0.02688, allocations: 120 kB / 299.3 MB, free: 10.38 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.0001199/0.027, allocations: 122.5 kB / 299.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003151/0.02731, allocations: 216.2 kB / 299.6 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.02731, allocations: 4 kB / 299.6 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.02745, allocations: 109.6 kB / 299.7 MB, free: 9.926 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.02785, allocations: 72.8 kB / 299.8 MB, free: 9.863 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.02955, allocations: 1.38 MB / 301.2 MB, free: 8.426 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.02966, allocations: 157.7 kB / 301.3 MB, free: 8.254 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001235/0.02979, allocations: 47.33 kB / 301.4 MB, free: 8.207 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.02993, allocations: 134.2 kB / 301.5 MB, free: 8.074 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02993, allocations: 0 / 301.5 MB, free: 8.074 MB / 282.7 MB Notification: Performance of Templates: time 0.008464/0.03839, allocations: 3.935 MB / 305.5 MB, free: 4.219 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.6867607780732214]