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.001385/0.001385, allocations: 113 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 210.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 55.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2642, allocations: 50.54 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007826/0.2721, allocations: 7.164 MB / 417.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004095/0.2762, allocations: 2.372 MB / 419.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008339/0.2771, allocations: 19.94 kB / 419.5 MB, free: 8.027 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.2786, allocations: 0.4892 MB / 420 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001156/0.2798, allocations: 385 kB / 420.3 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005084/0.2803, allocations: 203.7 kB / 420.5 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.2818, allocations: 1.203 MB / 421.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007306/0.2825, allocations: 0.4998 MB / 422.2 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006983/0.2832, allocations: 478.1 kB / 422.7 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006798/0.2839, allocations: 493.8 kB / 423.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00019/0.2841, allocations: 116 kB / 423.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003996/0.2845, allocations: 152 kB / 423.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.2847, allocations: 231.1 kB / 423.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006271/0.2854, allocations: 0.5482 MB / 424.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.2869, allocations: 1.43 MB / 425.7 MB, free: 1.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.2869, allocations: 3.984 kB / 425.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2869, allocations: 0 / 425.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.793e-05/0.2869, allocations: 3.938 kB / 425.7 MB, free: 1.785 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.00232/0.2893, allocations: 1.258 MB / 426.9 MB, free: 488 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.2893, allocations: 8.031 kB / 426.9 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005031/0.2898, allocations: 139.7 kB / 427.1 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.2909, allocations: 0.6494 MB / 427.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.158e-05/0.2909, allocations: 58.38 kB / 427.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.291, allocations: 76.38 kB / 427.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.2923, allocations: 0.7832 MB / 428.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.2924, allocations: 7.906 kB / 428.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.977e-05/0.2925, allocations: 32 kB / 428.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.2925, allocations: 23.94 kB / 428.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.2935, allocations: 0.5114 MB / 429.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003903/0.2974, allocations: 3.36 MB / 432.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004909/0.2979, allocations: 230.5 kB / 432.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.2982, allocations: 112.8 kB / 432.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.2982, allocations: 4 kB / 432.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.2983, allocations: 34.56 kB / 432.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.414e-06/0.2983, allocations: 0 / 432.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001953/0.3002, allocations: 1.057 MB / 434 MB, free: 9.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.3003, allocations: 85.34 kB / 434.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008819/0.3012, allocations: 0.7348 MB / 434.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.3012, allocations: 29.7 kB / 434.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003138/0.3015, allocations: 498.2 kB / 435.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.154e-05/0.3016, allocations: 102.5 kB / 435.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.3018, allocations: 114.2 kB / 435.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3019, allocations: 382.8 kB / 435.9 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002664/0.3022, allocations: 121.2 kB / 436 MB, free: 6.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000441/0.3026, allocations: 426.1 kB / 436.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000728/0.3034, allocations: 0.5754 MB / 437 MB, free: 5.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/0.3034, allocations: 8 kB / 437 MB, free: 5.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001082/0.3045, allocations: 0.6072 MB / 437.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.3045, allocations: 14.81 kB / 437.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.3045, allocations: 8 kB / 437.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.3047, allocations: 36.84 kB / 437.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004235/0.3051, allocations: 135.8 kB / 437.8 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.3061, allocations: 1.398 MB / 439.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004798/0.3066, allocations: 32.14 kB / 439.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/0.3067, allocations: 35.94 kB / 439.3 MB, free: 3.25 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.0003158/0.307, allocations: 241.5 kB / 439.5 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3071, allocations: 79 kB / 439.6 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006216/0.3078, allocations: 321.4 kB / 439.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3078, allocations: 4 kB / 439.9 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3078, allocations: 0 / 439.9 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3078, allocations: 3.984 kB / 439.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.3093, allocations: 1.098 MB / 441 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.3093, allocations: 0 / 441 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.3096, allocations: 63.91 kB / 441.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.378e-05/0.3097, allocations: 17.06 kB / 441.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.3097, allocations: 12 kB / 441.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008785/0.3106, allocations: 1.379 MB / 442.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3106, allocations: 4 kB / 442.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008421/0.3115, allocations: 0.5488 MB / 443.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/0.3117, allocations: 172.2 kB / 443.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.955e-05/0.3118, allocations: 8 kB / 443.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/0.3121, allocations: 23.98 kB / 443.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.043e-05/0.3122, allocations: 27.84 kB / 443.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3122, allocations: 8 kB / 443.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006284/0.3128, allocations: 0.4991 MB / 443.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3128, allocations: 0 / 443.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006409/0.3135, allocations: 171.9 kB / 444 MB, free: 14.29 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.0001951/0.3137, allocations: 123.2 kB / 444.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000835/0.3145, allocations: 461.1 kB / 444.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3146, allocations: 0 / 444.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003505/0.3149, allocations: 243.3 kB / 444.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000877/0.3158, allocations: 182.4 kB / 444.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.3182, allocations: 1.453 MB / 446.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.3187, allocations: 0.9411 MB / 447.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.3189, allocations: 47.44 kB / 447.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3189, allocations: 0 / 447.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of Templates: time 0.01837/0.3373, allocations: 13.49 MB / 460.9 MB, free: 13.28 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/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