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.001222/0.001222, allocations: 77.14 kB / 21.5 MB, free: 2.832 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.001314/0.001314, allocations: 142.9 kB / 24.89 MB, free: 9.277 MB / 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 0.9238/0.9238, allocations: 173.4 MB / 201.5 MB, free: 8.266 MB / 186.7 MB " [Timeout remaining time 179] 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.843e-06/1.843e-06, allocations: 0 / 268.5 MB, free: 9.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.692e-05/2.876e-05, allocations: 3.281 kB / 268.5 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00847/0.008499, allocations: 5.181 MB / 273.6 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00486/0.01336, allocations: 2.088 MB / 275.7 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.01437, allocations: 51.56 kB / 275.8 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005965/0.01496, allocations: 202.2 kB / 276 MB, free: 2.293 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006184/0.01558, allocations: 182.2 kB / 276.2 MB, free: 2.113 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.01671, allocations: 398.9 kB / 276.5 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001437/0.01814, allocations: 1.044 MB / 277.6 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008024/0.01894, allocations: 405.6 kB / 278 MB, free: 248 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009177/0.01986, allocations: 0.5263 MB / 278.5 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004931/0.02035, allocations: 283.2 kB / 278.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.0205, allocations: 92 kB / 278.9 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003193/0.02082, allocations: 151.8 kB / 279 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.02105, allocations: 215.3 kB / 279.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003557/0.0214, allocations: 287.3 kB / 279.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.02246, allocations: 0.6732 MB / 280.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.02246, allocations: 0 / 280.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.02246, allocations: 0 / 280.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.02248, allocations: 0 / 280.2 MB, free: 14.03 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.001561/0.02404, allocations: 0.9516 MB / 281.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.02409, allocations: 15.97 kB / 281.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002175/0.0243, allocations: 124.8 kB / 281.3 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007576/0.02506, allocations: 389 kB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.999e-05/0.02513, allocations: 66.38 kB / 281.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.02527, allocations: 92.31 kB / 281.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.02633, allocations: 0.5907 MB / 282.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.568e-05/0.02638, allocations: 16.06 kB / 282.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.95e-05/0.02645, allocations: 36.38 kB / 282.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.671e-05/0.02648, allocations: 23.94 kB / 282.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005903/0.02707, allocations: 216.6 kB / 282.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003131/0.0302, allocations: 2.151 MB / 284.8 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004684/0.03067, allocations: 145.3 kB / 285 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.639e-05/0.03076, allocations: 45.34 kB / 285 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.421e-05/0.03086, allocations: 15.98 kB / 285 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.03089, allocations: 42.56 kB / 285.1 MB, free: 8.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.675e-06/0.03089, allocations: 0 / 285.1 MB, free: 8.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001994/0.03289, allocations: 0.8075 MB / 285.9 MB, free: 8.066 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.03293, allocations: 59.41 kB / 286 MB, free: 7.996 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.03323, allocations: 290.8 kB / 286.2 MB, free: 7.699 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.03326, allocations: 29.7 kB / 286.3 MB, free: 7.664 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002589/0.03352, allocations: 384.3 kB / 286.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.03363, allocations: 134.8 kB / 286.8 MB, free: 7.152 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.03377, allocations: 94.09 kB / 286.9 MB, free: 7.051 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.03393, allocations: 350.7 kB / 287.2 MB, free: 6.699 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.03403, allocations: 44.97 kB / 287.3 MB, free: 6.656 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.03423, allocations: 186 kB / 287.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003799/0.03461, allocations: 272.6 kB / 287.7 MB, free: 6.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.03462, allocations: 0 / 287.7 MB, free: 6.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000523/0.03514, allocations: 305.5 kB / 288 MB, free: 5.781 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.03517, allocations: 11.94 kB / 288 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.03518, allocations: 4 kB / 288 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.03536, allocations: 24.84 kB / 288 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003737/0.03574, allocations: 111.8 kB / 288.1 MB, free: 5.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003941/0.03613, allocations: 0.5332 MB / 288.7 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.03637, allocations: 20.03 kB / 288.7 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.03641, allocations: 16 kB / 288.7 MB, free: 5.035 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.0002237/0.03663, allocations: 144.4 kB / 288.9 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.6e-05/0.03671, allocations: 31.97 kB / 288.9 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004439/0.03715, allocations: 208.5 kB / 289.1 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.03716, allocations: 4 kB / 289.1 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.03716, allocations: 0 / 289.1 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.03718, allocations: 3.938 kB / 289.1 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.03836, allocations: 0.5673 MB / 289.7 MB, free: 4.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.03837, allocations: 3.938 kB / 289.7 MB, free: 4.016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000369/0.03874, allocations: 79.91 kB / 289.7 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000135/0.03887, allocations: 24.83 kB / 289.8 MB, free: 3.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.0389, allocations: 8 kB / 289.8 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003401/0.03924, allocations: 0.525 MB / 290.3 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.03924, allocations: 4.188 kB / 290.3 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005392/0.03978, allocations: 386.5 kB / 290.7 MB, free: 2.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.733e-05/0.03984, allocations: 35.75 kB / 290.7 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.12e-05/0.03989, allocations: 8 kB / 290.7 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.04006, allocations: 8 kB / 290.7 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.56e-05/0.04013, allocations: 31.83 kB / 290.8 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.04016, allocations: 8 kB / 290.8 MB, free: 2.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001463/0.0403, allocations: 108.6 kB / 290.9 MB, free: 2.734 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0403, allocations: 0 / 290.9 MB, free: 2.734 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006741/0.04098, allocations: 120 kB / 291 MB, free: 2.617 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.0002158/0.04119, allocations: 100.3 kB / 291.1 MB, free: 2.512 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.04166, allocations: 214.4 kB / 291.3 MB, free: 2.301 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.735e-05/0.04168, allocations: 7.938 kB / 291.3 MB, free: 2.293 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.04188, allocations: 104.9 kB / 291.4 MB, free: 2.188 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005353/0.04241, allocations: 65.56 kB / 291.5 MB, free: 2.121 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.04492, allocations: 1.18 MB / 292.7 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.04509, allocations: 145.7 kB / 292.8 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002042/0.04529, allocations: 55.06 kB / 292.9 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.0455, allocations: 115.3 kB / 293 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.0455, allocations: 0 / 293 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of Templates: time 0.01201/0.0575, allocations: 3.845 MB / 296.8 MB, free: 12.79 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] 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","",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.6007307837717235]