Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001786/0.001786, allocations: 109.3 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002132/0.002132, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.472/1.472, allocations: 230.4 MB / 251.1 MB, free: 8.504 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003346/0.003346, allocations: 67.83 kB / 369 MB, free: 6.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2922, allocations: 53.33 MB / 422.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009727/0.302, allocations: 7.18 MB / 429.5 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00438/0.3063, allocations: 2.383 MB / 431.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000771/0.3071, allocations: 16 kB / 431.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001598/0.3087, allocations: 0.5204 MB / 432.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.3101, allocations: 416.9 kB / 432.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006794/0.3108, allocations: 203.8 kB / 433 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001929/0.3127, allocations: 1.206 MB / 434.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006733/0.3134, allocations: 340 kB / 434.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008201/0.3142, allocations: 474.1 kB / 435 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008314/0.3151, allocations: 0.4899 MB / 435.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002695/0.3153, allocations: 112 kB / 435.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004327/0.3158, allocations: 156 kB / 435.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002419/0.316, allocations: 219.2 kB / 436 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008167/0.3168, allocations: 0.5521 MB / 436.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001916/0.3187, allocations: 1.44 MB / 437.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3188, allocations: 3.938 kB / 437.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3188, allocations: 0 / 437.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.965e-05/0.3188, allocations: 0 / 437.9 MB, free: 7.992 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002509/0.3213, allocations: 1.269 MB / 439.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.3213, allocations: 11.97 kB / 439.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005815/0.3219, allocations: 156.1 kB / 439.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.3232, allocations: 0.6499 MB / 440 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.538e-05/0.3232, allocations: 58.38 kB / 440.1 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.3234, allocations: 84.33 kB / 440.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.3248, allocations: 0.7832 MB / 441 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.01e-05/0.3248, allocations: 4 kB / 441 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.3249, allocations: 32 kB / 441 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/0.3249, allocations: 20 kB / 441 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.326, allocations: 0.5231 MB / 441.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004313/0.3303, allocations: 3.381 MB / 444.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004909/0.3308, allocations: 206.6 kB / 445.1 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.3311, allocations: 108.8 kB / 445.2 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.3311, allocations: 8 kB / 445.2 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.3311, allocations: 30.56 kB / 445.3 MB, free: 336 kB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/0.3311, allocations: 0 / 445.3 MB, free: 336 kB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002165/0.3333, allocations: 1.067 MB / 446.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.864e-05/0.3334, allocations: 81.34 kB / 446.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.3344, allocations: 0.7272 MB / 447.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.3344, allocations: 33.7 kB / 447.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004088/0.3349, allocations: 0.5034 MB / 447.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.124e-05/0.3349, allocations: 111.1 kB / 447.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.3351, allocations: 122.2 kB / 447.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.3353, allocations: 378.8 kB / 448.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.3356, allocations: 129.2 kB / 448.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005164/0.3361, allocations: 418.2 kB / 448.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008423/0.337, allocations: 0.5676 MB / 449.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.337, allocations: 4 kB / 449.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001097/0.3381, allocations: 0.6189 MB / 450 MB, free: 11.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.3381, allocations: 8 kB / 450 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.3381, allocations: 12 kB / 450 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.3383, allocations: 37.44 kB / 450 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004365/0.3387, allocations: 139.8 kB / 450.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.34, allocations: 1.391 MB / 451.6 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004312/0.3404, allocations: 31.94 kB / 451.6 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.903e-05/0.3404, allocations: 32 kB / 451.6 MB, free: 9.398 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003307/0.3408, allocations: 241.9 kB / 451.9 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.3409, allocations: 75.53 kB / 451.9 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006701/0.3415, allocations: 321.3 kB / 452.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3415, allocations: 4 kB / 452.3 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3416, allocations: 11.88 kB / 452.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3416, allocations: 0 / 452.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/0.3432, allocations: 1.093 MB / 453.4 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.3432, allocations: 8.219 kB / 453.4 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002633/0.3435, allocations: 55.91 kB / 453.4 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.42e-05/0.3436, allocations: 20.84 kB / 453.4 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.3436, allocations: 8 kB / 453.5 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.3447, allocations: 1.375 MB / 454.8 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.3447, allocations: 4.031 kB / 454.8 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009102/0.3456, allocations: 0.5532 MB / 455.4 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002411/0.3459, allocations: 176.6 kB / 455.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.912e-05/0.3459, allocations: 8 kB / 455.6 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000325/0.3463, allocations: 19.98 kB / 455.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.192e-05/0.3463, allocations: 23.91 kB / 455.6 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.3464, allocations: 16 kB / 455.6 MB, free: 5.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000754/0.3471, allocations: 0.5029 MB / 456.1 MB, free: 4.598 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3471, allocations: 0 / 456.1 MB, free: 4.598 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006715/0.3478, allocations: 160 kB / 456.3 MB, free: 4.441 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002551/0.348, allocations: 137.9 kB / 456.4 MB, free: 4.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008989/0.3489, allocations: 452.9 kB / 456.9 MB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3489, allocations: 4 kB / 456.9 MB, free: 3.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003827/0.3493, allocations: 230.5 kB / 457.1 MB, free: 3.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008461/0.3502, allocations: 188.9 kB / 457.3 MB, free: 3.426 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.3525, allocations: 1.43 MB / 458.7 MB, free: 1.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005931/0.3531, allocations: 0.9411 MB / 459.6 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002859/0.3534, allocations: 94 kB / 459.7 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.3535, allocations: 51.44 kB / 459.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3535, allocations: 0 / 459.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of Templates: time 0.01718/0.3706, allocations: 8.439 MB / 468.2 MB, free: 8.48 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches