Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.00176/0.00176, allocations: 78.88 kB / 21.24 MB, free: 0.543 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.002033/0.002033, allocations: 161.1 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 177.1 MB / 204.7 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 61.64 kB / 325.5 MB, free: 168 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1039, allocations: 53.38 MB / 378.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01348/0.1173, allocations: 10.58 MB / 389.5 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006401/0.1237, allocations: 3.137 MB / 392.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.1252, allocations: 39.88 kB / 392.7 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.127, allocations: 0.6284 MB / 393.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002148/0.1291, allocations: 0.795 MB / 394.1 MB, free: 200 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008668/0.13, allocations: 403.6 kB / 394.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002939/0.1329, allocations: 2.417 MB / 396.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009773/0.1339, allocations: 0.6071 MB / 397.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.1353, allocations: 0.934 MB / 398.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.1364, allocations: 0.8472 MB / 399.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002779/0.1367, allocations: 228 kB / 399.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004866/0.1372, allocations: 272 kB / 399.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003798/0.1376, allocations: 466.3 kB / 400.2 MB, free: 9.984 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009574/0.1385, allocations: 0.8634 MB / 401.1 MB, free: 9.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003098/0.1416, allocations: 2.86 MB / 404 MB, free: 6.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1416, allocations: 4 kB / 404 MB, free: 6.242 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1416, allocations: 0 / 404 MB, free: 6.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.338e-05/0.1417, allocations: 0 / 404 MB, free: 6.242 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.003794/0.1455, allocations: 2.145 MB / 406.1 MB, free: 4.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1455, allocations: 8.031 kB / 406.1 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008973/0.1464, allocations: 291.4 kB / 406.4 MB, free: 3.762 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/0.1483, allocations: 1.051 MB / 407.5 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.559e-05/0.1484, allocations: 111.5 kB / 407.6 MB, free: 2.559 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002131/0.1487, allocations: 175.8 kB / 407.7 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002637/0.1513, allocations: 1.601 MB / 409.3 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.127e-05/0.1513, allocations: 8 kB / 409.4 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.1515, allocations: 64 kB / 409.4 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.754e-05/0.1515, allocations: 36 kB / 409.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00215/0.1537, allocations: 1.049 MB / 410.5 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008637/0.1623, allocations: 5.412 MB / 415.9 MB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.1639, allocations: 0.5656 MB / 416.5 MB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009622/0.1648, allocations: 414.6 kB / 416.9 MB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/0.1649, allocations: 8.656 kB / 416.9 MB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/0.1649, allocations: 55.09 kB / 416.9 MB, free: 8.785 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.465e-06/0.1649, allocations: 0 / 416.9 MB, free: 8.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.00552/0.1705, allocations: 2.162 MB / 419.1 MB, free: 6.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.313e-05/0.1706, allocations: 111.5 kB / 419.2 MB, free: 6.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.1724, allocations: 1.172 MB / 420.4 MB, free: 5.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.1724, allocations: 37.7 kB / 420.4 MB, free: 5.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007297/0.1732, allocations: 0.8818 MB / 421.3 MB, free: 4.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000242/0.1734, allocations: 273.7 kB / 421.6 MB, free: 4.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003068/0.1737, allocations: 206.8 kB / 421.8 MB, free: 3.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.1739, allocations: 353.9 kB / 422.1 MB, free: 3.512 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006082/0.1745, allocations: 282.5 kB / 422.4 MB, free: 3.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/0.1756, allocations: 0.7849 MB / 423.2 MB, free: 2.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.1773, allocations: 1.088 MB / 424.3 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.1773, allocations: 4 kB / 424.3 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002549/0.1798, allocations: 1.257 MB / 425.5 MB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.1798, allocations: 12 kB / 425.5 MB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.1799, allocations: 12 kB / 425.6 MB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005605/0.1804, allocations: 135 kB / 425.7 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009023/0.1813, allocations: 255.6 kB / 425.9 MB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00442/0.1858, allocations: 4.252 MB / 430.2 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.1868, allocations: 55.97 kB / 430.2 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-05/0.1869, allocations: 52.12 kB / 430.3 MB, free: 10.57 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.0006791/0.1875, allocations: 365.3 kB / 430.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.1878, allocations: 139.2 kB / 430.8 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/0.1896, allocations: 0.8165 MB / 431.6 MB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1896, allocations: 4 kB / 431.6 MB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.1896, allocations: 4 kB / 431.6 MB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.1896, allocations: 3.984 kB / 431.6 MB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00377/0.1934, allocations: 1.957 MB / 433.6 MB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.1934, allocations: 4 kB / 433.6 MB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005937/0.194, allocations: 127.8 kB / 433.7 MB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004442/0.1944, allocations: 138.6 kB / 433.8 MB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.1945, allocations: 23.98 kB / 433.9 MB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/0.199, allocations: 4.402 MB / 438.3 MB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.199, allocations: 11.94 kB / 438.3 MB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002538/0.2016, allocations: 1.281 MB / 439.6 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005035/0.2021, allocations: 195 kB / 439.7 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.2022, allocations: 20 kB / 439.8 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007196/0.2029, allocations: 39.97 kB / 439.8 MB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.2031, allocations: 68.27 kB / 439.9 MB, free: 496 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.017e-05/0.2031, allocations: 23.98 kB / 439.9 MB, free: 472 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001301/0.2044, allocations: 0.7685 MB / 440.7 MB, free: 15.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2044, allocations: 0 / 440.7 MB, free: 15.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001319/0.2057, allocations: 328 kB / 441 MB, free: 15.37 MB / 414.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.0002449/0.206, allocations: 139 kB / 441.1 MB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.2081, allocations: 1.073 MB / 442.2 MB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.2081, allocations: 0 / 442.2 MB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.2093, allocations: 0.6996 MB / 442.9 MB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.2109, allocations: 339.7 kB / 443.2 MB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006276/0.2171, allocations: 2.928 MB / 446.1 MB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008807/0.218, allocations: 0.6337 MB / 446.8 MB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006512/0.2187, allocations: 166.8 kB / 446.9 MB, free: 9.211 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.2189, allocations: 88.48 kB / 447 MB, free: 9.125 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2189, allocations: 0 / 447 MB, free: 9.125 MB / 414.1 MB Notification: Performance of Templates: time 0.03457/0.2535, allocations: 17.39 MB / 464.4 MB, free: 7.973 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 5.419181080069393]