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.001266/0.001266, allocations: 114 kB / 19.17 MB, free: 3.895 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.001303/0.001303, allocations: 208.9 kB / 22.13 MB, free: 0.9414 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.389/1.389, allocations: 230.4 MB / 255.4 MB, free: 9.066 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.001921/0.001921, allocations: 71.83 kB / 374.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2545, allocations: 53.33 MB / 428.1 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01391/0.2684, allocations: 12.2 MB / 440.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005926/0.2743, allocations: 3.319 MB / 443.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.2754, allocations: 35.94 kB / 443.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.2771, allocations: 0.6907 MB / 444.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00182/0.2789, allocations: 0.7911 MB / 445.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007764/0.2797, allocations: 399.5 kB / 445.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002739/0.2824, allocations: 2.412 MB / 447.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009826/0.2834, allocations: 0.6535 MB / 448.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.2846, allocations: 0.9183 MB / 449.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.2858, allocations: 0.9762 MB / 450.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002931/0.2861, allocations: 232 kB / 450.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000493/0.2866, allocations: 264 kB / 450.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003847/0.287, allocations: 466.3 kB / 451.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.2881, allocations: 1.069 MB / 452.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003146/0.2912, allocations: 2.841 MB / 455.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.2912, allocations: 7.938 kB / 455.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2912, allocations: 0 / 455.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.378e-05/0.2913, allocations: 0 / 455.3 MB, free: 12.77 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.003862/0.2951, allocations: 2.205 MB / 457.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.2951, allocations: 15.97 kB / 457.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000908/0.2961, allocations: 291.5 kB / 457.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.2979, allocations: 1.135 MB / 459 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.298, allocations: 115.5 kB / 459.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002908/0.2983, allocations: 163.8 kB / 459.2 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002718/0.3011, allocations: 1.512 MB / 460.7 MB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.699e-05/0.3011, allocations: 7.938 kB / 460.7 MB, free: 7.152 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.3012, allocations: 67.92 kB / 460.8 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.3013, allocations: 40 kB / 460.9 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/0.3034, allocations: 1.045 MB / 461.9 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008959/0.3124, allocations: 6.248 MB / 468.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.3139, allocations: 0.5646 MB / 468.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009482/0.3149, allocations: 434.1 kB / 469.1 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.3149, allocations: 8.562 kB / 469.1 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.315, allocations: 39.12 kB / 469.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.826e-06/0.315, allocations: 0 / 469.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005229/0.3202, allocations: 2.402 MB / 471.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.609e-05/0.3203, allocations: 111.4 kB / 471.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/0.3222, allocations: 1.31 MB / 473 MB, free: 10.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/0.3222, allocations: 41.7 kB / 473 MB, free: 10.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006945/0.3229, allocations: 0.8671 MB / 473.9 MB, free: 9.527 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.3231, allocations: 273.7 kB / 474.2 MB, free: 9.258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002901/0.3234, allocations: 206.8 kB / 474.4 MB, free: 9.051 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.3236, allocations: 349.9 kB / 474.7 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/0.3242, allocations: 286.5 kB / 475 MB, free: 8.422 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009926/0.3252, allocations: 0.7342 MB / 475.7 MB, free: 7.473 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001644/0.3268, allocations: 1.088 MB / 476.8 MB, free: 6.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.3268, allocations: 4 kB / 476.8 MB, free: 6.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002503/0.3293, allocations: 1.265 MB / 478.1 MB, free: 4.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.3294, allocations: 12 kB / 478.1 MB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.3294, allocations: 16 kB / 478.1 MB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005339/0.3299, allocations: 134.7 kB / 478.3 MB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008368/0.3308, allocations: 255.6 kB / 478.5 MB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004287/0.335, allocations: 4.631 MB / 483.1 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009798/0.336, allocations: 59.86 kB / 483.2 MB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.94e-05/0.3361, allocations: 56 kB / 483.2 MB, free: 15.3 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.0006241/0.3367, allocations: 369.4 kB / 483.6 MB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.3369, allocations: 139.1 kB / 483.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/0.3388, allocations: 0.8295 MB / 484.6 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.3388, allocations: 12.08 kB / 484.6 MB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.3388, allocations: 3.984 kB / 484.6 MB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3389, allocations: 3.984 kB / 484.6 MB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004282/0.3431, allocations: 2.319 MB / 486.9 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.3431, allocations: 4 kB / 486.9 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006062/0.3437, allocations: 127.8 kB / 487 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004915/0.3442, allocations: 142.8 kB / 487.2 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.725e-05/0.3443, allocations: 20 kB / 487.2 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004832/0.3491, allocations: 4.795 MB / 492 MB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.3491, allocations: 7.938 kB / 492 MB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002759/0.3519, allocations: 1.297 MB / 493.3 MB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007415/0.3526, allocations: 288.1 kB / 493.6 MB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003308/0.353, allocations: 27.92 kB / 493.6 MB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007661/0.3537, allocations: 40.16 kB / 493.6 MB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.3539, allocations: 56.42 kB / 493.7 MB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-05/0.3539, allocations: 32 kB / 493.7 MB, free: 4.148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001512/0.3554, allocations: 0.8819 MB / 494.6 MB, free: 3.266 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3554, allocations: 0 / 494.6 MB, free: 3.266 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001346/0.3568, allocations: 331.9 kB / 494.9 MB, free: 2.941 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.0002527/0.357, allocations: 127.2 kB / 495.1 MB, free: 2.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.3592, allocations: 1.089 MB / 496.2 MB, free: 1.684 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3592, allocations: 384 / 496.2 MB, free: 1.684 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.3603, allocations: 0.6912 MB / 496.8 MB, free: 0.9492 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.3621, allocations: 370.6 kB / 497.2 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005926/0.368, allocations: 2.994 MB / 0.4885 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.369, allocations: 1.217 MB / 0.4897 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003344/0.3693, allocations: 103.4 kB / 0.4898 GB, free: 12.17 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3693, allocations: 4 kB / 0.4898 GB, free: 12.17 MB / 414.1 MB Notification: Performance of Templates: time 0.05193/0.4213, allocations: 41.2 MB / 0.53 GB, free: 3.004 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_2/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_2/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: 9.848339702002704]