Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001514/0.001514, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001868/0.001868, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.286, allocations: 50.54 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008208/0.2943, allocations: 7.159 MB / 416.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003872/0.2982, allocations: 2.372 MB / 418.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006207/0.2988, allocations: 19.94 kB / 418.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.3002, allocations: 0.5165 MB / 419.3 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009006/0.3011, allocations: 413 kB / 419.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003828/0.3015, allocations: 207.7 kB / 419.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.3025, allocations: 1.191 MB / 421.1 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006427/0.3032, allocations: 0.5115 MB / 421.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005473/0.3037, allocations: 470.1 kB / 422.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004823/0.3042, allocations: 0.49 MB / 422.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.3044, allocations: 112 kB / 422.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.3046, allocations: 160 kB / 422.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.3048, allocations: 227.1 kB / 423.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004627/0.3053, allocations: 0.5521 MB / 423.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.3066, allocations: 1.426 MB / 425 MB, free: 1.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3066, allocations: 0 / 425 MB, free: 1.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3066, allocations: 0 / 425 MB, free: 1.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.3066, allocations: 3.938 kB / 425 MB, free: 1.734 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00187/0.3085, allocations: 1.254 MB / 426.3 MB, free: 440 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.3086, allocations: 8.031 kB / 426.3 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004606/0.309, allocations: 143.7 kB / 426.4 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.31, allocations: 0.6416 MB / 427.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.39e-05/0.3101, allocations: 62.36 kB / 427.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.3102, allocations: 80.38 kB / 427.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.3114, allocations: 0.7832 MB / 428 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/0.3115, allocations: 7.844 kB / 428 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.357e-05/0.3116, allocations: 36 kB / 428.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.3116, allocations: 23.94 kB / 428.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009742/0.3126, allocations: 0.5153 MB / 428.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003885/0.3165, allocations: 3.364 MB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.317, allocations: 226.5 kB / 432.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002296/0.3172, allocations: 120.8 kB / 432.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.3172, allocations: 3.984 kB / 432.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.3173, allocations: 34.56 kB / 432.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.194e-06/0.3173, allocations: 0 / 432.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00191/0.3192, allocations: 1.053 MB / 433.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.3192, allocations: 81.34 kB / 433.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008655/0.3201, allocations: 0.7348 MB / 434.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.3202, allocations: 33.7 kB / 434.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002983/0.3205, allocations: 0.4904 MB / 434.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.525e-05/0.3205, allocations: 98.56 kB / 434.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.3207, allocations: 114.2 kB / 434.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3208, allocations: 382.8 kB / 435.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002587/0.3211, allocations: 117.2 kB / 435.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000452/0.3216, allocations: 426.2 kB / 435.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.3223, allocations: 0.5714 MB / 436.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.3223, allocations: 4 kB / 436.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001021/0.3233, allocations: 0.6106 MB / 437 MB, free: 4.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3234, allocations: 8.812 kB / 437 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.3234, allocations: 8 kB / 437 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000161/0.3236, allocations: 40.84 kB / 437.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004205/0.324, allocations: 135.8 kB / 437.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.325, allocations: 1.39 MB / 438.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004273/0.3255, allocations: 27.98 kB / 438.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.022e-05/0.3255, allocations: 35.94 kB / 438.7 MB, free: 3.207 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000296/0.3258, allocations: 245.6 kB / 438.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.279e-05/0.3259, allocations: 82.98 kB / 439 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000596/0.3265, allocations: 325.3 kB / 439.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.3265, allocations: 4 kB / 439.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.3265, allocations: 0 / 439.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3266, allocations: 7.984 kB / 439.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.328, allocations: 1.098 MB / 440.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.328, allocations: 4 kB / 440.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.3283, allocations: 59.91 kB / 440.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.732e-05/0.3284, allocations: 20.84 kB / 440.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.3284, allocations: 8 kB / 440.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009466/0.3294, allocations: 1.367 MB / 441.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3294, allocations: 4.031 kB / 441.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008041/0.3302, allocations: 0.5488 MB / 442.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.3304, allocations: 176.2 kB / 442.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.58e-05/0.3305, allocations: 4 kB / 442.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/0.3308, allocations: 19.98 kB / 442.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.433e-05/0.3309, allocations: 31.91 kB / 442.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.3309, allocations: 11.94 kB / 442.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000655/0.3316, allocations: 0.4991 MB / 443.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3316, allocations: 0 / 443.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006876/0.3323, allocations: 167.9 kB / 443.3 MB, free: 14.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002396/0.3325, allocations: 123.2 kB / 443.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008806/0.3334, allocations: 460.2 kB / 443.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3334, allocations: 0 / 443.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.3338, allocations: 244.1 kB / 444.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008316/0.3346, allocations: 189.9 kB / 444.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.3368, allocations: 1.42 MB / 445.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.3374, allocations: 0.9372 MB / 446.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002863/0.3377, allocations: 90.02 kB / 446.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.3378, allocations: 51.42 kB / 446.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3378, allocations: 0 / 446.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of Templates: time 0.01664/0.3544, allocations: 8.281 MB / 455.1 MB, free: 2.453 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches