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.001846/0.001846, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.002103/0.002103, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 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 1.466/1.466, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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 1.543e-06/1.543e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.941e-05/3.095e-05, allocations: 2.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007658/0.007689, allocations: 4.836 MB / 272.2 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003895/0.01158, allocations: 1.997 MB / 274.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004907/0.01207, allocations: 55.56 kB / 274.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004897/0.01256, allocations: 206.2 kB / 274.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004021/0.01297, allocations: 174.3 kB / 274.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009109/0.01388, allocations: 402.9 kB / 275 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001234/0.01511, allocations: 1.044 MB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007108/0.01582, allocations: 389.6 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000746/0.01657, allocations: 0.5185 MB / 276.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004106/0.01698, allocations: 259.2 kB / 277.2 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.01712, allocations: 92 kB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.0174, allocations: 151.8 kB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.01762, allocations: 207.3 kB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003726/0.018, allocations: 295.3 kB / 277.9 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001659/0.01966, allocations: 1.191 MB / 279.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.01966, allocations: 4 kB / 279.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01966, allocations: 0 / 279.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.018e-05/0.01968, allocations: 0 / 279.1 MB, free: 10.88 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.001625/0.02131, allocations: 0.9726 MB / 280.1 MB, free: 9.875 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.02134, allocations: 8.922 kB / 280.1 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.02161, allocations: 160.4 kB / 280.2 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009089/0.02252, allocations: 487.5 kB / 280.7 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.183e-05/0.02259, allocations: 62.38 kB / 280.8 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005037/0.0231, allocations: 96.31 kB / 280.9 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.02468, allocations: 0.7933 MB / 281.7 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.087e-05/0.02472, allocations: 20.06 kB / 281.7 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.39e-05/0.0248, allocations: 32.38 kB / 281.7 MB, free: 8.168 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.626e-05/0.02482, allocations: 23.94 kB / 281.7 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.02592, allocations: 0.4918 MB / 282.2 MB, free: 7.652 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003691/0.02961, allocations: 2.513 MB / 284.7 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.03022, allocations: 206.6 kB / 284.9 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.03043, allocations: 96.8 kB / 285 MB, free: 4.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001151/0.03054, allocations: 20 kB / 285 MB, free: 4.711 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/0.03059, allocations: 42.48 kB / 285.1 MB, free: 4.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.804e-06/0.0306, allocations: 0 / 285.1 MB, free: 4.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.002874/0.03347, allocations: 1.127 MB / 286.2 MB, free: 3.473 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.03353, allocations: 55.41 kB / 286.3 MB, free: 3.406 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000407/0.03393, allocations: 312.3 kB / 286.6 MB, free: 3.094 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.03398, allocations: 33.7 kB / 286.6 MB, free: 3.055 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.03433, allocations: 407.7 kB / 287 MB, free: 2.652 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.03446, allocations: 134.8 kB / 287.1 MB, free: 2.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.03461, allocations: 94.14 kB / 287.2 MB, free: 2.418 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.03482, allocations: 346.8 kB / 287.6 MB, free: 2.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.03505, allocations: 105 kB / 287.7 MB, free: 1.969 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003787/0.03543, allocations: 258 kB / 287.9 MB, free: 1.656 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006407/0.03607, allocations: 392.7 kB / 288.3 MB, free: 1.211 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.03608, allocations: 3.938 kB / 288.3 MB, free: 1.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008792/0.03695, allocations: 493 kB / 288.8 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.03697, allocations: 8 kB / 288.8 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.03698, allocations: 4.594 kB / 288.8 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000195/0.03718, allocations: 36.84 kB / 288.8 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.03758, allocations: 111.8 kB / 289 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1019/0.1395, allocations: 0.5506 MB / 289.5 MB, free: 32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002997/0.1398, allocations: 20.42 kB / 289.5 MB, free: 32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.75e-05/0.1398, allocations: 22.16 kB / 289.5 MB, free: 32 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.0002707/0.1401, allocations: 217.8 kB / 289.8 MB, free: 31.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.131e-05/0.1402, allocations: 49 kB / 289.8 MB, free: 31.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006065/0.1408, allocations: 324.5 kB / 290.1 MB, free: 31.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.1408, allocations: 7.797 kB / 290.1 MB, free: 31.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1408, allocations: 0 / 290.1 MB, free: 31.83 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.1408, allocations: 1.734 kB / 290.1 MB, free: 31.83 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.142, allocations: 0.8443 MB / 291 MB, free: 31.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.142, allocations: 1.219 kB / 291 MB, free: 31.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.1423, allocations: 84.16 kB / 291.1 MB, free: 31.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/0.1425, allocations: 30.69 kB / 291.1 MB, free: 31.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.1425, allocations: 15.88 kB / 291.1 MB, free: 31.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002195/0.1427, allocations: 0.5474 MB / 291.7 MB, free: 30.97 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.1427, allocations: 2.156 kB / 291.7 MB, free: 30.97 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007/0.1434, allocations: 0.5617 MB / 292.2 MB, free: 30.65 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.1435, allocations: 32.09 kB / 292.2 MB, free: 30.65 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.1435, allocations: 12.72 kB / 292.3 MB, free: 30.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.1437, allocations: 9.922 kB / 292.3 MB, free: 30.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.249e-05/0.1437, allocations: 33 kB / 292.3 MB, free: 30.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.1438, allocations: 14.53 kB / 292.3 MB, free: 30.63 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001889/0.144, allocations: 209.4 kB / 292.5 MB, free: 30.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.144, allocations: 2.188 kB / 292.5 MB, free: 30.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005097/0.1445, allocations: 119.9 kB / 292.6 MB, free: 30.5 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.0001481/0.1446, allocations: 120.7 kB / 292.8 MB, free: 30.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000563/0.1452, allocations: 291.9 kB / 293 MB, free: 30.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1452, allocations: 1.438 kB / 293 MB, free: 30.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.1454, allocations: 130.4 kB / 293.2 MB, free: 30.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004985/0.1459, allocations: 71.34 kB / 293.2 MB, free: 30.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.1479, allocations: 1.408 MB / 294.6 MB, free: 29.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.1482, allocations: 329.9 kB / 295 MB, free: 29.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000157/0.1483, allocations: 48.64 kB / 295 MB, free: 29.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.453e-05/0.1484, allocations: 32.83 kB / 295 MB, free: 29.29 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.1484, allocations: 3.828 kB / 295.1 MB, free: 29.29 MB / 266.7 MB Notification: Performance of Templates: time 0.008623/0.157, allocations: 3.537 MB / 298.6 MB, free: 28.79 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.340393902966753]