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.0009801/0.0009801, allocations: 83.69 kB / 21.7 MB, free: 2.848 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.001088/0.001088, allocations: 157.1 kB / 24.99 MB, free: 8.801 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 1.062/1.062, allocations: 177 MB / 205.2 MB, free: 5.562 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.724e-06/1.724e-06, allocations: 0 / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.611e-05/2.783e-05, allocations: 2.312 kB / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004954/0.004982, allocations: 5.296 MB / 278.3 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.007611, allocations: 2.102 MB / 280.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004067/0.008018, allocations: 51.56 kB / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003482/0.008366, allocations: 206.2 kB / 280.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003413/0.008707, allocations: 178.3 kB / 280.8 MB, free: 9.871 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006942/0.009402, allocations: 411 kB / 281.2 MB, free: 9.469 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007859/0.01019, allocations: 1.044 MB / 282.2 MB, free: 8.418 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006774/0.01087, allocations: 401.5 kB / 282.6 MB, free: 8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005595/0.01142, allocations: 0.5263 MB / 283.2 MB, free: 7.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.01171, allocations: 279.2 kB / 283.4 MB, free: 7.199 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.121e-05/0.0118, allocations: 92 kB / 283.5 MB, free: 7.109 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.01199, allocations: 151.8 kB / 283.7 MB, free: 6.961 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.01211, allocations: 211.2 kB / 283.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.01232, allocations: 291.3 kB / 284.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006144/0.01293, allocations: 0.681 MB / 284.8 MB, free: 5.785 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.01293, allocations: 0 / 284.8 MB, free: 5.785 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.01293, allocations: 4 kB / 284.9 MB, free: 5.781 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.01295, allocations: 0 / 284.9 MB, free: 5.781 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.0009927/0.01394, allocations: 1.076 MB / 285.9 MB, free: 4.668 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.01397, allocations: 11.98 kB / 285.9 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004045/0.01438, allocations: 168.4 kB / 286.1 MB, free: 4.492 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005024/0.01488, allocations: 490.4 kB / 286.6 MB, free: 3.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.01492, allocations: 66.38 kB / 286.6 MB, free: 3.918 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.888e-05/0.015, allocations: 84.33 kB / 286.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007817/0.01578, allocations: 0.6575 MB / 287.4 MB, free: 3.129 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.01581, allocations: 4.172 kB / 287.4 MB, free: 3.125 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.302e-05/0.01585, allocations: 40.31 kB / 287.4 MB, free: 3.086 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.01587, allocations: 31.88 kB / 287.5 MB, free: 3.055 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.01632, allocations: 279.7 kB / 287.7 MB, free: 2.781 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1043/0.1206, allocations: 2.959 MB / 290.7 MB, free: 27.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005362/0.1212, allocations: 167.7 kB / 290.9 MB, free: 27.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.299e-05/0.1213, allocations: 67.42 kB / 290.9 MB, free: 27.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.787e-05/0.1214, allocations: 20.12 kB / 290.9 MB, free: 27.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.1214, allocations: 39.59 kB / 291 MB, free: 26.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.894e-06/0.1214, allocations: 0 / 291 MB, free: 26.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001478/0.1228, allocations: 0.9767 MB / 292 MB, free: 26.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.993e-05/0.1229, allocations: 55.81 kB / 292 MB, free: 26.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.1231, allocations: 357.6 kB / 292.4 MB, free: 26.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.1231, allocations: 31.14 kB / 292.4 MB, free: 26.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.1233, allocations: 457.7 kB / 292.8 MB, free: 26.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.896e-05/0.1233, allocations: 142.1 kB / 293 MB, free: 26.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-05/0.1234, allocations: 90.94 kB / 293.1 MB, free: 26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.543e-05/0.1235, allocations: 0.5224 MB / 293.6 MB, free: 25.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.1236, allocations: 58.84 kB / 293.6 MB, free: 25.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.1237, allocations: 260.1 kB / 293.9 MB, free: 25.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.124, allocations: 354 kB / 294.2 MB, free: 25.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.124, allocations: 6.438 kB / 294.3 MB, free: 25.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004194/0.1244, allocations: 386.6 kB / 294.6 MB, free: 24.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.1244, allocations: 7 kB / 294.6 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1244, allocations: 5.156 kB / 294.6 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001529/0.1246, allocations: 36.14 kB / 294.7 MB, free: 24.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/0.1248, allocations: 113.8 kB / 294.8 MB, free: 24.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002078/0.125, allocations: 0.816 MB / 295.6 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.1251, allocations: 11.03 kB / 295.6 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.93e-05/0.1252, allocations: 21.59 kB / 295.6 MB, free: 24.03 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.000116/0.1253, allocations: 189 kB / 295.8 MB, free: 23.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.859e-05/0.1253, allocations: 53.41 kB / 295.9 MB, free: 23.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003415/0.1257, allocations: 260.5 kB / 296.1 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1257, allocations: 4.312 kB / 296.1 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1257, allocations: 0 / 296.1 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1257, allocations: 3.141 kB / 296.1 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008105/0.1265, allocations: 0.8484 MB / 297 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1265, allocations: 2.781 kB / 297 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000229/0.1267, allocations: 79.56 kB / 297.1 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.871e-05/0.1268, allocations: 27.44 kB / 297.1 MB, free: 23.13 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.1268, allocations: 14.36 kB / 297.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001454/0.127, allocations: 0.8031 MB / 297.9 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.127, allocations: 2.156 kB / 297.9 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003939/0.1274, allocations: 0.5028 MB / 298.4 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.1274, allocations: 38.44 kB / 298.5 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.1274, allocations: 10.45 kB / 298.5 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.059e-05/0.1275, allocations: 8.125 kB / 298.5 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.332e-05/0.1276, allocations: 28.78 kB / 298.5 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.1276, allocations: 11.73 kB / 298.5 MB, free: 21.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001299/0.1277, allocations: 237 kB / 298.7 MB, free: 21.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1277, allocations: 0 / 298.7 MB, free: 21.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003378/0.128, allocations: 117.6 kB / 298.9 MB, free: 21.77 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.0001314/0.1282, allocations: 124.6 kB / 299 MB, free: 21.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003627/0.1285, allocations: 237.7 kB / 299.2 MB, free: 21.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1285, allocations: 0 / 299.2 MB, free: 21.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.1287, allocations: 120.1 kB / 299.3 MB, free: 21.58 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.129, allocations: 79.97 kB / 299.4 MB, free: 21.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.1306, allocations: 1.379 MB / 300.8 MB, free: 20.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001028/0.1307, allocations: 147.8 kB / 300.9 MB, free: 20.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.1308, allocations: 50.34 kB / 301 MB, free: 20.58 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.068e-05/0.1308, allocations: 32.7 kB / 301 MB, free: 20.57 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.1308, allocations: 0 / 301 MB, free: 20.57 MB / 266.7 MB Notification: Performance of Templates: time 0.00651/0.1373, allocations: 3.555 MB / 304.6 MB, free: 19.82 MB / 266.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.903100827941671]