Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001256/0.001256, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 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.001395/0.001395, allocations: 209.8 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.396/1.396, allocations: 230.6 MB / 258.3 MB, free: 8.023 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+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_4.1.0_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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 47.92 kB / 379 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2373, allocations: 53.36 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01443/0.2518, allocations: 12.25 MB / 444.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006193/0.258, allocations: 3.331 MB / 448 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00141/0.2594, allocations: 39.88 kB / 448 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.2613, allocations: 0.6922 MB / 448.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002208/0.2635, allocations: 0.7833 MB / 449.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009085/0.2644, allocations: 411.5 kB / 449.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003237/0.2677, allocations: 2.416 MB / 452.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.2687, allocations: 0.65 MB / 453 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.2701, allocations: 0.9379 MB / 453.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001243/0.2713, allocations: 0.9839 MB / 454.9 MB, free: 320 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002819/0.2716, allocations: 232 kB / 455.1 MB, free: 88 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004777/0.2721, allocations: 268 kB / 455.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003648/0.2725, allocations: 458.3 kB / 455.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001048/0.2735, allocations: 1.081 MB / 456.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003276/0.2768, allocations: 2.833 MB / 459.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.2768, allocations: 4 kB / 459.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2768, allocations: 4 kB / 459.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.995e-05/0.2768, allocations: 0 / 459.7 MB, free: 11.44 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.003786/0.2806, allocations: 2.141 MB / 461.9 MB, free: 9.254 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2807, allocations: 8.031 kB / 461.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008953/0.2816, allocations: 291.5 kB / 462.2 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001909/0.2835, allocations: 1.059 MB / 463.2 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.572e-05/0.2836, allocations: 115.5 kB / 463.3 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/0.2838, allocations: 163.9 kB / 463.5 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002621/0.2864, allocations: 1.492 MB / 465 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-05/0.2865, allocations: 15.94 kB / 465 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.2866, allocations: 71.94 kB / 465.1 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.776e-05/0.2866, allocations: 36 kB / 465.1 MB, free: 5.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002075/0.2887, allocations: 1.045 MB / 466.2 MB, free: 4.859 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008398/0.2971, allocations: 6.109 MB / 472.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.2986, allocations: 0.5733 MB / 472.8 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008956/0.2995, allocations: 430.6 kB / 473.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.279e-05/0.2995, allocations: 4.656 kB / 473.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.2996, allocations: 47.22 kB / 473.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.515e-06/0.2996, allocations: 0 / 473.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.004761/0.3043, allocations: 2.166 MB / 475.5 MB, free: 11.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.3044, allocations: 111.5 kB / 475.6 MB, free: 11.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001886/0.3063, allocations: 1.31 MB / 476.9 MB, free: 9.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/0.3064, allocations: 41.7 kB / 476.9 MB, free: 9.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007118/0.3071, allocations: 0.8788 MB / 477.8 MB, free: 8.797 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.3073, allocations: 269.8 kB / 478.1 MB, free: 8.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002802/0.3076, allocations: 210.8 kB / 478.3 MB, free: 8.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3077, allocations: 341.9 kB / 478.6 MB, free: 7.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005637/0.3083, allocations: 286.5 kB / 478.9 MB, free: 7.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009182/0.3092, allocations: 0.7346 MB / 479.6 MB, free: 6.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.3108, allocations: 1.088 MB / 480.7 MB, free: 5.457 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.3108, allocations: 4 kB / 480.7 MB, free: 5.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002351/0.3131, allocations: 1.257 MB / 482 MB, free: 4.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3132, allocations: 12.5 kB / 482 MB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.3132, allocations: 23.98 kB / 482 MB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005175/0.3137, allocations: 134.5 kB / 482.2 MB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008319/0.3145, allocations: 259.6 kB / 482.4 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004097/0.3186, allocations: 4.328 MB / 486.7 MB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009282/0.3196, allocations: 59.97 kB / 486.8 MB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.128e-05/0.3196, allocations: 52 kB / 486.8 MB, free: 14.97 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.0005912/0.3202, allocations: 353.4 kB / 487.2 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.3204, allocations: 147.1 kB / 487.3 MB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/0.3222, allocations: 0.8372 MB / 488.2 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.3222, allocations: 11.92 kB / 488.2 MB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3222, allocations: 4 kB / 488.2 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3222, allocations: 0 / 488.2 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003919/0.3261, allocations: 2.293 MB / 490.5 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3261, allocations: 4.062 kB / 490.5 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005633/0.3267, allocations: 131.8 kB / 490.6 MB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000438/0.3271, allocations: 134.4 kB / 490.7 MB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.367e-05/0.3272, allocations: 19.98 kB / 490.8 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00428/0.3315, allocations: 4.481 MB / 495.2 MB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.3315, allocations: 7.938 kB / 495.3 MB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.3338, allocations: 1.301 MB / 496.6 MB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005022/0.3343, allocations: 207 kB / 496.8 MB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.3345, allocations: 20 kB / 496.8 MB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006128/0.3351, allocations: 39.95 kB / 496.8 MB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.3352, allocations: 68.28 kB / 496.9 MB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.3353, allocations: 23.98 kB / 496.9 MB, free: 4.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001287/0.3366, allocations: 0.8781 MB / 497.8 MB, free: 3.457 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3366, allocations: 0 / 497.8 MB, free: 3.457 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001153/0.3377, allocations: 328 kB / 498.1 MB, free: 3.137 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.0002201/0.3379, allocations: 135.2 kB / 498.2 MB, free: 2.996 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.3398, allocations: 1.085 MB / 499.3 MB, free: 1.875 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3398, allocations: 0 / 499.3 MB, free: 1.875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.3408, allocations: 0.6872 MB / 0.4883 GB, free: 1.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.3424, allocations: 377.2 kB / 0.4886 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005639/0.348, allocations: 3.001 MB / 0.4916 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009196/0.349, allocations: 1.213 MB / 0.4928 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.3493, allocations: 99.42 kB / 0.4929 GB, free: 12.37 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3493, allocations: 3.938 kB / 0.4929 GB, free: 12.36 MB / 414.1 MB Notification: Performance of Templates: time 0.04861/0.3979, allocations: 41.22 MB / 0.5331 GB, free: 3.184 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.90565492794849]