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.001402/0.001402, allocations: 89.53 kB / 20.69 MB, free: 1.02 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.00153/0.00153, allocations: 166.5 kB / 23.95 MB, free: 4.152 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.563/1.563, allocations: 177 MB / 204.1 MB, free: 9.164 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 1.372e-06/1.372e-06, allocations: 0 / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.508e-05/2.645e-05, allocations: 3.281 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01438/0.01441, allocations: 10.59 MB / 335.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007348/0.02176, allocations: 3.143 MB / 338.8 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00215/0.02391, allocations: 40.44 kB / 338.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.02618, allocations: 0.6438 MB / 339.4 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002782/0.02897, allocations: 0.8279 MB / 340.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.02998, allocations: 398 kB / 340.7 MB, free: 5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003916/0.0339, allocations: 2.511 MB / 343.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.03506, allocations: 0.6109 MB / 343.8 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002434/0.03749, allocations: 1.399 MB / 345.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.03853, allocations: 0.7126 MB / 345.9 MB, free: 92 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.03885, allocations: 228 kB / 346.1 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005106/0.03936, allocations: 271.9 kB / 346.4 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004074/0.03977, allocations: 466.2 kB / 346.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009384/0.04071, allocations: 0.7366 MB / 347.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003342/0.04405, allocations: 2.839 MB / 350.4 MB, free: 11.56 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.04406, allocations: 0 / 350.4 MB, free: 11.56 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.04406, allocations: 0 / 350.4 MB, free: 11.56 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.259e-05/0.04409, allocations: 0 / 350.4 MB, free: 11.56 MB / 318.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.004017/0.04811, allocations: 2.122 MB / 352.5 MB, free: 9.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.04815, allocations: 8.031 kB / 352.5 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009696/0.04912, allocations: 295.5 kB / 352.8 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.05112, allocations: 1.043 MB / 353.9 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.731e-05/0.05122, allocations: 111.5 kB / 354 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002538/0.05147, allocations: 168.3 kB / 354.1 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002899/0.05437, allocations: 1.609 MB / 355.8 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.548e-05/0.05442, allocations: 15.95 kB / 355.8 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.05458, allocations: 64 kB / 355.8 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.36e-05/0.05461, allocations: 36 kB / 355.9 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002342/0.05695, allocations: 1.049 MB / 356.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009331/0.06628, allocations: 5.412 MB / 362.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.06798, allocations: 0.57 MB / 362.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.069, allocations: 422.6 kB / 363.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.554e-05/0.06906, allocations: 4.656 kB / 363.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.146e-05/0.06913, allocations: 39.22 kB / 363.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.946e-06/0.06913, allocations: 0 / 363.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.005511/0.07464, allocations: 2.173 MB / 365.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.287e-05/0.07472, allocations: 111.5 kB / 365.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/0.07652, allocations: 1.176 MB / 366.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.806e-05/0.07658, allocations: 37.7 kB / 366.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007507/0.07733, allocations: 0.8819 MB / 367.7 MB, free: 9.668 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.07756, allocations: 269.7 kB / 368 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003283/0.07789, allocations: 210.8 kB / 368.2 MB, free: 9.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.07809, allocations: 353.9 kB / 368.5 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006518/0.07874, allocations: 278.5 kB / 368.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/0.07985, allocations: 0.7887 MB / 369.6 MB, free: 7.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/0.08163, allocations: 1.085 MB / 370.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.08164, allocations: 7.984 kB / 370.7 MB, free: 6.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002737/0.08438, allocations: 1.249 MB / 371.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.08441, allocations: 20.05 kB / 372 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.582e-05/0.08443, allocations: 16.09 kB / 372 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005764/0.08501, allocations: 134.5 kB / 372.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009335/0.08594, allocations: 255.6 kB / 372.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.09056, allocations: 4.24 MB / 376.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.09176, allocations: 64.12 kB / 376.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-05/0.09185, allocations: 52 kB / 376.7 MB, free: 15.9 MB / 350.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.0007181/0.09257, allocations: 345.5 kB / 377.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002376/0.0928, allocations: 135.1 kB / 377.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.09481, allocations: 0.8204 MB / 378 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.09482, allocations: 8 kB / 378 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.09482, allocations: 0 / 378 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.09483, allocations: 3.984 kB / 378 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004019/0.09885, allocations: 1.957 MB / 380 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.09886, allocations: 4 kB / 380 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006416/0.0995, allocations: 132.3 kB / 380.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005215/0.1, allocations: 138.4 kB / 380.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.098e-05/0.1001, allocations: 19.98 kB / 380.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004864/0.1049, allocations: 4.394 MB / 384.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.1049, allocations: 8.062 kB / 384.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002829/0.1078, allocations: 1.284 MB / 385.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005386/0.1083, allocations: 195 kB / 386.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.1085, allocations: 16 kB / 386.2 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006507/0.1091, allocations: 31.97 kB / 386.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.1093, allocations: 72.27 kB / 386.3 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.033e-05/0.1093, allocations: 27.94 kB / 386.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001356/0.1107, allocations: 0.7801 MB / 387.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1107, allocations: 0 / 387.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00132/0.112, allocations: 324 kB / 387.4 MB, free: 4.723 MB / 350.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.0002795/0.1123, allocations: 139.3 kB / 387.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.1145, allocations: 1.081 MB / 388.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.1145, allocations: 0 / 388.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.1157, allocations: 0.6825 MB / 389.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.1174, allocations: 351.2 kB / 389.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005493/0.1229, allocations: 2.774 MB / 392.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007386/0.1236, allocations: 0.6298 MB / 393 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006421/0.1243, allocations: 166.8 kB / 393.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002396/0.1245, allocations: 84.48 kB / 393.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1245, allocations: 0 / 393.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of Templates: time 0.03505/0.1596, allocations: 17.22 MB / 410.5 MB, free: 13.66 MB / 382.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/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.405839279294014]