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.001411/0.001411, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.001645/0.001645, allocations: 165.3 kB / 24.27 MB, free: 148 kB / 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 1.497/1.497, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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 4.96e-06/4.96e-06, allocations: 4 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.58e-05/3.076e-05, allocations: 2.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008183/0.008213, allocations: 4.851 MB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004415/0.01263, allocations: 2.063 MB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008089/0.01344, allocations: 47.62 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006832/0.01412, allocations: 202.2 kB / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004672/0.01459, allocations: 182.3 kB / 279.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.01569, allocations: 406.9 kB / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001671/0.01736, allocations: 1.048 MB / 281.1 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007042/0.01806, allocations: 389.6 kB / 281.5 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007876/0.01885, allocations: 0.5341 MB / 282 MB, free: 8.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003943/0.01925, allocations: 255.2 kB / 282.3 MB, free: 7.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.01938, allocations: 92 kB / 282.3 MB, free: 7.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002905/0.01967, allocations: 167.8 kB / 282.5 MB, free: 7.566 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002139/0.01989, allocations: 203.3 kB / 282.7 MB, free: 7.367 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000347/0.02023, allocations: 287.3 kB / 283 MB, free: 7.086 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001688/0.02192, allocations: 1.207 MB / 284.2 MB, free: 5.875 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.02192, allocations: 0 / 284.2 MB, free: 5.875 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.02193, allocations: 0 / 284.2 MB, free: 5.875 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.02194, allocations: 4 kB / 284.2 MB, free: 5.871 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.001753/0.0237, allocations: 0.9726 MB / 285.2 MB, free: 4.867 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.02374, allocations: 8.031 kB / 285.2 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003968/0.02414, allocations: 172.4 kB / 285.4 MB, free: 4.691 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009187/0.02506, allocations: 483.5 kB / 285.8 MB, free: 4.191 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.711e-05/0.02512, allocations: 58.38 kB / 285.9 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.02527, allocations: 96.31 kB / 286 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.02677, allocations: 0.7972 MB / 286.8 MB, free: 3.207 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.451e-05/0.02681, allocations: 8.172 kB / 286.8 MB, free: 3.199 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.02688, allocations: 36.38 kB / 286.8 MB, free: 3.164 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.708e-05/0.02691, allocations: 23.94 kB / 286.8 MB, free: 3.141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.02795, allocations: 499.6 kB / 287.3 MB, free: 2.648 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003782/0.03173, allocations: 2.513 MB / 289.8 MB, free: 36 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1179/0.1496, allocations: 209.5 kB / 290 MB, free: 28.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/0.1498, allocations: 91.17 kB / 290.1 MB, free: 28.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.1499, allocations: 21.02 kB / 290.2 MB, free: 28.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.1499, allocations: 35.06 kB / 290.2 MB, free: 28.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.713e-06/0.1499, allocations: 0 / 290.2 MB, free: 28.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.002175/0.1521, allocations: 1.133 MB / 291.3 MB, free: 28.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.1521, allocations: 57.73 kB / 291.4 MB, free: 28.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.1524, allocations: 320.5 kB / 291.7 MB, free: 28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.1524, allocations: 35.55 kB / 291.7 MB, free: 27.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.1526, allocations: 404.8 kB / 292.1 MB, free: 27.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.098e-05/0.1526, allocations: 139.5 kB / 292.3 MB, free: 27.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1527, allocations: 86.73 kB / 292.3 MB, free: 27.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.575e-05/0.1528, allocations: 352.3 kB / 292.7 MB, free: 27.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.153, allocations: 106.8 kB / 292.8 MB, free: 27.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.1532, allocations: 250.8 kB / 293 MB, free: 26.97 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00043/0.1537, allocations: 390.9 kB / 293.4 MB, free: 26.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1537, allocations: 1.156 kB / 293.4 MB, free: 26.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006894/0.1544, allocations: 480.9 kB / 293.9 MB, free: 26.47 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1544, allocations: 6.844 kB / 293.9 MB, free: 26.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1544, allocations: 8.875 kB / 293.9 MB, free: 26.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001799/0.1546, allocations: 46.69 kB / 293.9 MB, free: 26.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003418/0.1549, allocations: 110.2 kB / 294.1 MB, free: 26.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002772/0.1552, allocations: 0.5554 MB / 294.6 MB, free: 25.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.1554, allocations: 16.78 kB / 294.6 MB, free: 25.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.1554, allocations: 22.05 kB / 294.6 MB, free: 25.89 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.0002339/0.1556, allocations: 226 kB / 294.9 MB, free: 25.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.459e-05/0.1557, allocations: 48.5 kB / 294.9 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005835/0.1563, allocations: 326.7 kB / 295.2 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.1563, allocations: 6.031 kB / 295.2 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1563, allocations: 0.75 kB / 295.2 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1563, allocations: 3.766 kB / 295.2 MB, free: 25.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.1575, allocations: 0.8501 MB / 296.1 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1575, allocations: 2.422 kB / 296.1 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003676/0.1579, allocations: 81.42 kB / 296.2 MB, free: 25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/0.158, allocations: 34.05 kB / 296.2 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.158, allocations: 10 kB / 296.2 MB, free: 24.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002036/0.1583, allocations: 0.5503 MB / 296.8 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1583, allocations: 7.531 kB / 296.8 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006891/0.1589, allocations: 0.5463 MB / 297.3 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.159, allocations: 32.14 kB / 297.4 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.159, allocations: 8.375 kB / 297.4 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.1592, allocations: 12.95 kB / 297.4 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/0.1593, allocations: 24.3 kB / 297.4 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.1593, allocations: 15.7 kB / 297.4 MB, free: 24.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001844/0.1595, allocations: 218.4 kB / 297.6 MB, free: 23.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1595, allocations: 0 / 297.6 MB, free: 23.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005326/0.16, allocations: 118.9 kB / 297.7 MB, free: 23.94 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.0001506/0.1601, allocations: 123.5 kB / 297.9 MB, free: 23.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005773/0.1607, allocations: 300.5 kB / 298.2 MB, free: 23.74 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1607, allocations: 1.719 kB / 298.2 MB, free: 23.74 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.161, allocations: 131.9 kB / 298.3 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005081/0.1615, allocations: 71.95 kB / 298.4 MB, free: 23.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/0.1635, allocations: 1.399 MB / 299.8 MB, free: 22.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.1639, allocations: 326.2 kB / 300.1 MB, free: 22.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.164, allocations: 48.48 kB / 300.1 MB, free: 22.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.895e-05/0.1641, allocations: 32.5 kB / 300.2 MB, free: 22.66 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1641, allocations: 0 / 300.2 MB, free: 22.66 MB / 266.7 MB Notification: Performance of Templates: time 0.009151/0.1732, allocations: 3.566 MB / 303.7 MB, free: 21.89 MB / 266.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.399365010904148]