Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001338/0.001338, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 14.72 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.001435/0.001435, allocations: 204.7 kB / 25.23 MB, free: 3.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 207.6 MB / 236 MB, free: 9.969 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002576/0.002576, allocations: 55.92 kB / 348.5 MB, free: 9.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2614, allocations: 49.17 MB / 397.6 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01131/0.2727, allocations: 12.18 MB / 409.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007467/0.2802, allocations: 3.317 MB / 413.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002372/0.2826, allocations: 43.44 kB / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002496/0.2851, allocations: 0.6925 MB / 413.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003291/0.2884, allocations: 0.7861 MB / 414.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00136/0.2897, allocations: 415 kB / 415 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004058/0.2938, allocations: 2.42 MB / 417.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.2949, allocations: 0.6579 MB / 418.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.2965, allocations: 0.9299 MB / 419.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.2979, allocations: 0.988 MB / 420 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003005/0.2982, allocations: 233.4 kB / 420.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.2987, allocations: 263.1 kB / 420.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003884/0.2991, allocations: 460.2 kB / 421 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.3003, allocations: 1.073 MB / 422 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003388/0.3037, allocations: 2.841 MB / 424.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3037, allocations: 1.094 kB / 424.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3037, allocations: 0 / 424.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.348e-05/0.3037, allocations: 0 / 424.9 MB, free: 6.453 MB / 334.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.004337/0.3081, allocations: 2.139 MB / 427 MB, free: 4.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3081, allocations: 9.875 kB / 427 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009883/0.3091, allocations: 300.1 kB / 427.3 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002139/0.3112, allocations: 1.045 MB / 428.4 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.3114, allocations: 116.6 kB / 428.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002348/0.3116, allocations: 161.4 kB / 428.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002658/0.3143, allocations: 1.504 MB / 430.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.279e-05/0.3143, allocations: 15.95 kB / 430.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.3144, allocations: 64 kB / 430.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.134e-05/0.3145, allocations: 36 kB / 430.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002067/0.3165, allocations: 1.049 MB / 431.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00914/0.3257, allocations: 6.101 MB / 437.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/0.3273, allocations: 0.5733 MB / 438 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000931/0.3282, allocations: 426.5 kB / 438.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.559e-05/0.3282, allocations: 8.656 kB / 438.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.042e-05/0.3283, allocations: 39.22 kB / 438.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.986e-06/0.3283, allocations: 0 / 438.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005503/0.3338, allocations: 2.177 MB / 440.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.157e-05/0.3339, allocations: 111.5 kB / 440.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/0.3359, allocations: 1.31 MB / 442 MB, free: 6.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.979e-05/0.336, allocations: 37.7 kB / 442.1 MB, free: 6.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007204/0.3367, allocations: 0.871 MB / 443 MB, free: 5.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.3369, allocations: 273.7 kB / 443.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.3373, allocations: 214.8 kB / 443.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.3375, allocations: 341.9 kB / 443.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006104/0.3381, allocations: 294.5 kB / 444.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009856/0.3391, allocations: 0.7346 MB / 444.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.3407, allocations: 1.081 MB / 445.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.3407, allocations: 8 kB / 445.9 MB, free: 2 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002611/0.3433, allocations: 1.265 MB / 447.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.3434, allocations: 16.09 kB / 447.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/0.3434, allocations: 19.94 kB / 447.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005275/0.3439, allocations: 130.4 kB / 447.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008305/0.3447, allocations: 259.6 kB / 447.6 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00408/0.3488, allocations: 4.316 MB / 451.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.3501, allocations: 71.98 kB / 451.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.216e-05/0.3501, allocations: 52 kB / 452 MB, free: 11.51 MB / 366.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.0006435/0.3508, allocations: 357.3 kB / 452.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.351, allocations: 147.2 kB / 452.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.3528, allocations: 0.8218 MB / 453.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.3528, allocations: 15.94 kB / 453.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3528, allocations: 0 / 453.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.3528, allocations: 3.984 kB / 453.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00406/0.3569, allocations: 2.297 MB / 455.6 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.3569, allocations: 4 kB / 455.6 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.3575, allocations: 123.9 kB / 455.8 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004478/0.3579, allocations: 146.4 kB / 455.9 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.358, allocations: 16 kB / 455.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004367/0.3623, allocations: 4.488 MB / 460.4 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.3623, allocations: 7.984 kB / 460.4 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002557/0.3649, allocations: 1.301 MB / 461.7 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007491/0.3657, allocations: 214.9 kB / 461.9 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.3658, allocations: 20 kB / 461.9 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006357/0.3665, allocations: 35.97 kB / 462 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.3666, allocations: 68.27 kB / 462 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.249e-05/0.3667, allocations: 24 kB / 462.1 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00136/0.368, allocations: 0.8783 MB / 462.9 MB, free: 15.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.368, allocations: 0 / 462.9 MB, free: 15.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001306/0.3693, allocations: 328 kB / 463.3 MB, free: 15.67 MB / 382.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.000256/0.3696, allocations: 135 kB / 463.4 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.3716, allocations: 1.093 MB / 464.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3716, allocations: 0 / 464.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.3727, allocations: 0.6833 MB / 465.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.3745, allocations: 365.4 kB / 465.5 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005966/0.3804, allocations: 2.996 MB / 468.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.3815, allocations: 1.217 MB / 469.7 MB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003636/0.3819, allocations: 99.42 kB / 469.8 MB, free: 8.895 MB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3819, allocations: 0 / 469.8 MB, free: 8.895 MB / 382.1 MB Notification: Performance of Templates: time 0.0508/0.4327, allocations: 41.21 MB / 0.4991 GB, free: 15.6 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.601586463861167]