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_withLosses.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.005438/0.005438, allocations: 109.4 kB / 21.98 MB, free: 5.203 MB / 14.72 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.001573/0.001573, allocations: 212.2 kB / 25.29 MB, free: 3.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 259 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "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.001933/0.001933, allocations: 67.88 kB / 379.8 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.236, allocations: 53.36 MB / 433.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01459/0.2506, allocations: 12.25 MB / 445.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006977/0.2576, allocations: 3.327 MB / 448.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/0.2597, allocations: 39.88 kB / 448.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002381/0.2621, allocations: 0.6922 MB / 449.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002811/0.2649, allocations: 0.7833 MB / 450.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.266, allocations: 419.4 kB / 450.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00351/0.2695, allocations: 2.412 MB / 453.1 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00118/0.2707, allocations: 0.6578 MB / 453.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001581/0.2723, allocations: 0.9262 MB / 454.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001396/0.2737, allocations: 0.9878 MB / 455.7 MB, free: 336 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003478/0.274, allocations: 232 kB / 455.9 MB, free: 104 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005547/0.2746, allocations: 264 kB / 456.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004414/0.275, allocations: 466.2 kB / 456.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001108/0.2761, allocations: 1.069 MB / 457.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003575/0.2797, allocations: 2.844 MB / 460.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2797, allocations: 0 / 460.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2797, allocations: 4 kB / 460.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.22e-05/0.2797, allocations: 0 / 460.5 MB, free: 11.45 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004016/0.2838, allocations: 2.145 MB / 462.7 MB, free: 9.266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2838, allocations: 8.031 kB / 462.7 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009515/0.2847, allocations: 291.5 kB / 463 MB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.2868, allocations: 1.051 MB / 464 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.2869, allocations: 111.5 kB / 464.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/0.2872, allocations: 167.9 kB / 464.3 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.2901, allocations: 1.496 MB / 465.8 MB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.568e-05/0.2902, allocations: 19.83 kB / 465.8 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.2903, allocations: 68 kB / 465.9 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-05/0.2903, allocations: 36 kB / 465.9 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0023/0.2926, allocations: 1.049 MB / 466.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009552/0.3022, allocations: 6.105 MB / 473.1 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.3038, allocations: 0.5736 MB / 473.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000955/0.3048, allocations: 426.5 kB / 474 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.324e-05/0.3048, allocations: 16.78 kB / 474.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.209e-05/0.3049, allocations: 39.22 kB / 474.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.465e-06/0.3049, allocations: 0 / 474.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005557/0.3104, allocations: 2.166 MB / 476.3 MB, free: 11.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.202e-05/0.3105, allocations: 115.5 kB / 476.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/0.3125, allocations: 1.314 MB / 477.7 MB, free: 9.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.584e-05/0.3126, allocations: 33.7 kB / 477.7 MB, free: 9.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007154/0.3133, allocations: 0.871 MB / 478.6 MB, free: 8.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.3135, allocations: 273.7 kB / 478.9 MB, free: 8.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002977/0.3138, allocations: 214.8 kB / 479.1 MB, free: 8.336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.314, allocations: 341.9 kB / 479.4 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006454/0.3147, allocations: 286.5 kB / 479.7 MB, free: 7.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000986/0.3156, allocations: 0.7346 MB / 480.4 MB, free: 6.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.3174, allocations: 1.084 MB / 481.5 MB, free: 5.477 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.3174, allocations: 4 kB / 481.5 MB, free: 5.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002671/0.32, allocations: 1.268 MB / 482.8 MB, free: 4.188 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.3201, allocations: 12 kB / 482.8 MB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/0.3201, allocations: 16 kB / 482.8 MB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005717/0.3207, allocations: 139.1 kB / 482.9 MB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008743/0.3215, allocations: 259.5 kB / 483.2 MB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004402/0.3259, allocations: 4.324 MB / 487.5 MB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.3271, allocations: 59.91 kB / 487.6 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.3272, allocations: 52 kB / 487.6 MB, free: 14.98 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007042/0.3279, allocations: 353.5 kB / 488 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.3282, allocations: 151 kB / 488.1 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.3301, allocations: 0.8295 MB / 488.9 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3301, allocations: 7.938 kB / 489 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3301, allocations: 4 kB / 489 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.3301, allocations: 3.984 kB / 489 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004307/0.3344, allocations: 2.301 MB / 491.3 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.3344, allocations: 4 kB / 491.3 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005917/0.335, allocations: 128.3 kB / 491.4 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004994/0.3355, allocations: 134.4 kB / 491.5 MB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.93e-05/0.3356, allocations: 19.98 kB / 491.5 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004889/0.3405, allocations: 4.478 MB / 496 MB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.3405, allocations: 12.06 kB / 496 MB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002851/0.3433, allocations: 1.301 MB / 497.3 MB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000648/0.344, allocations: 211 kB / 497.5 MB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.3441, allocations: 23.98 kB / 497.6 MB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006398/0.3448, allocations: 35.97 kB / 497.6 MB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.3449, allocations: 68.27 kB / 497.7 MB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-05/0.345, allocations: 24 kB / 497.7 MB, free: 4.348 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001459/0.3464, allocations: 0.8781 MB / 498.6 MB, free: 3.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3464, allocations: 0 / 498.6 MB, free: 3.469 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00125/0.3477, allocations: 328 kB / 498.9 MB, free: 3.148 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002482/0.3479, allocations: 139 kB / 499 MB, free: 3.004 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002076/0.35, allocations: 1.088 MB / 0.4884 GB, free: 1.879 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.35, allocations: 0 / 0.4884 GB, free: 1.879 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.3511, allocations: 0.6841 MB / 0.4891 GB, free: 1.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.3527, allocations: 375.8 kB / 0.4894 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005809/0.3585, allocations: 2.993 MB / 0.4923 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009788/0.3595, allocations: 1.217 MB / 0.4935 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003625/0.3599, allocations: 103.4 kB / 0.4936 GB, free: 12.38 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3599, allocations: 0 / 0.4936 GB, free: 12.38 MB / 414.1 MB Notification: Performance of Templates: time 0.05232/0.4122, allocations: 41.23 MB / 0.5339 GB, free: 3.191 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: 10.655184040777385]