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.001504/0.001504, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.00146, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.3 MB, free: 10.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00306/0.00306, allocations: 59.56 kB / 306.3 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1203, allocations: 50.54 MB / 356.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009138/0.1294, allocations: 7.134 MB / 364 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004599/0.1341, allocations: 2.364 MB / 366.4 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007599/0.1349, allocations: 23.88 kB / 366.4 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.1364, allocations: 441.7 kB / 366.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.1374, allocations: 333.7 kB / 367.1 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004458/0.1379, allocations: 183.8 kB / 367.3 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001325/0.1392, allocations: 1.136 MB / 368.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007218/0.1399, allocations: 446.7 kB / 368.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000652/0.1406, allocations: 410.2 kB / 369.3 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005044/0.1411, allocations: 477.7 kB / 369.8 MB, free: 1.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.1412, allocations: 68 kB / 369.8 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002634/0.1415, allocations: 112 kB / 369.9 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.1417, allocations: 187.2 kB / 370.1 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005123/0.1422, allocations: 0.4974 MB / 370.6 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1793/0.3215, allocations: 1.376 MB / 372 MB, free: 12.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.3216, allocations: 4.656 kB / 372 MB, free: 12.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3216, allocations: 2.062 kB / 372 MB, free: 12.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.661e-05/0.3216, allocations: 0 / 372 MB, free: 12.47 MB / 302.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.002341/0.324, allocations: 1.248 MB / 373.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.324, allocations: 10.34 kB / 373.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000541/0.3246, allocations: 140.7 kB / 373.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.3256, allocations: 0.6389 MB / 374 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.861e-05/0.3257, allocations: 63.22 kB / 374.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.3258, allocations: 79.73 kB / 374.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.3272, allocations: 0.7842 MB / 375 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.3273, allocations: 5.656 kB / 375 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.3e-05/0.3273, allocations: 32.47 kB / 375 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.3274, allocations: 23.34 kB / 375 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.3284, allocations: 0.5194 MB / 375.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.3326, allocations: 3.396 MB / 378.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005157/0.3331, allocations: 219.8 kB / 379.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.3334, allocations: 112.2 kB / 379.3 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.3334, allocations: 9.062 kB / 379.3 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.3334, allocations: 38.28 kB / 379.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.3334, allocations: 0 / 379.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002043/0.3355, allocations: 1.043 MB / 380.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3356, allocations: 80.98 kB / 380.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.3366, allocations: 0.7398 MB / 381.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.3366, allocations: 31.67 kB / 381.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.3369, allocations: 0.489 MB / 381.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.228e-05/0.337, allocations: 106.6 kB / 381.8 MB, free: 8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.3372, allocations: 114.6 kB / 381.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3373, allocations: 380.8 kB / 382.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.3376, allocations: 124.5 kB / 382.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.3379, allocations: 421.1 kB / 382.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006153/0.3386, allocations: 0.5677 MB / 383.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.3386, allocations: 6.031 kB / 383.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001022/0.3396, allocations: 0.6113 MB / 384 MB, free: 6.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3396, allocations: 9.625 kB / 384 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.3397, allocations: 10.33 kB / 384 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.3398, allocations: 33.16 kB / 384 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/0.3403, allocations: 145.5 kB / 384.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007802/0.3411, allocations: 1.288 MB / 385.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004605/0.3416, allocations: 38.52 kB / 385.5 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.351e-05/0.3416, allocations: 35.62 kB / 385.5 MB, free: 5.082 MB / 302.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.000283/0.3419, allocations: 236.8 kB / 385.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.342, allocations: 73.77 kB / 385.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006311/0.3427, allocations: 324.8 kB / 386.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3427, allocations: 2.312 kB / 386.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3427, allocations: 2.234 kB / 386.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3427, allocations: 5.156 kB / 386.2 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.3444, allocations: 1.099 MB / 387.3 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3444, allocations: 1 kB / 387.3 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002616/0.3446, allocations: 61.17 kB / 387.3 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-05/0.3447, allocations: 27.88 kB / 387.4 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.3448, allocations: 9.938 kB / 387.4 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006081/0.3454, allocations: 1.27 MB / 388.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3454, allocations: 3.281 kB / 388.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007927/0.3462, allocations: 0.5479 MB / 389.2 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.3464, allocations: 170.4 kB / 389.4 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.233e-05/0.3465, allocations: 13.22 kB / 389.4 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.3468, allocations: 23.67 kB / 389.4 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.51e-05/0.3469, allocations: 24.2 kB / 389.4 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.3469, allocations: 12.11 kB / 389.4 MB, free: 2.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007039/0.3476, allocations: 0.5013 MB / 389.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3476, allocations: 0 / 389.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007561/0.3484, allocations: 157.5 kB / 390.1 MB, free: 1.98 MB / 302.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.0001988/0.3486, allocations: 123.9 kB / 390.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008824/0.3495, allocations: 467.2 kB / 390.7 MB, free: 1.684 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3495, allocations: 4.125 kB / 390.7 MB, free: 1.684 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000352/0.3499, allocations: 241.9 kB / 390.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.3509, allocations: 172.4 kB / 391.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00246/0.3534, allocations: 1.764 MB / 392.8 MB, free: 304 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006453/0.354, allocations: 0.9431 MB / 393.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004102/0.3544, allocations: 87.08 kB / 393.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.3546, allocations: 47.41 kB / 393.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3546, allocations: 0 / 393.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of Templates: time 0.01849/0.3731, allocations: 7.727 MB / 401.6 MB, free: 12.35 MB / 318.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.1.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