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.001415/0.001415, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 60.38 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09907, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007891/0.107, allocations: 7.145 MB / 366 MB, free: 6.164 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.1105, allocations: 2.388 MB / 368.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000348/0.1108, allocations: 16 kB / 368.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.1119, allocations: 0.4931 MB / 368.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006637/0.1126, allocations: 385 kB / 369.3 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.1129, allocations: 195.8 kB / 369.5 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00106/0.114, allocations: 1.21 MB / 370.7 MB, free: 1.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000659/0.1147, allocations: 0.5037 MB / 371.2 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006263/0.1153, allocations: 466.1 kB / 371.7 MB, free: 500 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.155/0.2703, allocations: 499.6 kB / 372.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004192/0.2708, allocations: 113.6 kB / 372.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005258/0.2713, allocations: 152.6 kB / 372.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.2715, allocations: 231 kB / 372.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005242/0.272, allocations: 0.5384 MB / 373.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.2736, allocations: 1.432 MB / 374.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2737, allocations: 4.188 kB / 374.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2737, allocations: 0 / 374.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.2737, allocations: 0 / 374.6 MB, free: 12.22 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.002093/0.2758, allocations: 1.247 MB / 375.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2758, allocations: 9.812 kB / 375.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005263/0.2764, allocations: 145.2 kB / 376 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.2774, allocations: 0.6517 MB / 376.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.053e-05/0.2775, allocations: 63.69 kB / 376.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.2776, allocations: 79.5 kB / 376.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.2789, allocations: 0.7768 MB / 377.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.2789, allocations: 8.891 kB / 377.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.835e-05/0.279, allocations: 35.78 kB / 377.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.279, allocations: 19.56 kB / 377.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009937/0.28, allocations: 0.5167 MB / 378.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003697/0.2837, allocations: 3.36 MB / 381.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004643/0.2842, allocations: 236 kB / 381.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.2845, allocations: 114 kB / 381.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.2845, allocations: 2.406 kB / 381.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.2845, allocations: 35.45 kB / 381.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.2845, allocations: 0 / 381.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001888/0.2864, allocations: 1.045 MB / 383 MB, free: 7.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.2865, allocations: 81.5 kB / 383 MB, free: 7.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009124/0.2874, allocations: 0.7381 MB / 383.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.2874, allocations: 31.08 kB / 383.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002638/0.2877, allocations: 496.9 kB / 384.3 MB, free: 7.035 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.2878, allocations: 111.1 kB / 384.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.2879, allocations: 117.3 kB / 384.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.288, allocations: 377.6 kB / 384.9 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002675/0.2883, allocations: 133.7 kB / 385 MB, free: 6.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003675/0.2887, allocations: 419.2 kB / 385.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006152/0.2893, allocations: 0.5776 MB / 386 MB, free: 5.582 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.2893, allocations: 2.375 kB / 386 MB, free: 5.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001007/0.2903, allocations: 0.61 MB / 386.6 MB, free: 5.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.2904, allocations: 9.562 kB / 386.6 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.2904, allocations: 9.875 kB / 386.6 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.2905, allocations: 28.73 kB / 386.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/0.291, allocations: 144.1 kB / 386.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007168/0.2917, allocations: 1.382 MB / 388.2 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004435/0.2922, allocations: 41.3 kB / 388.2 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.2922, allocations: 31.14 kB / 388.3 MB, free: 3.926 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.0002694/0.2925, allocations: 236.4 kB / 388.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.703e-05/0.2926, allocations: 78.45 kB / 388.6 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006156/0.2932, allocations: 327.5 kB / 388.9 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.2932, allocations: 7.766 kB / 388.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/0.2932, allocations: 0 / 388.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2932, allocations: 2.641 kB / 388.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.2948, allocations: 1.098 MB / 390 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.2948, allocations: 1.719 kB / 390 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.2951, allocations: 61 kB / 390 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-05/0.2952, allocations: 27.98 kB / 390.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.2952, allocations: 7.688 kB / 390.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006255/0.2958, allocations: 1.366 MB / 391.4 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2958, allocations: 2.531 kB / 391.5 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007698/0.2966, allocations: 0.5534 MB / 392 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.2968, allocations: 171.2 kB / 392.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.983e-05/0.2969, allocations: 12.97 kB / 392.2 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.2972, allocations: 18.2 kB / 392.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.003e-05/0.2973, allocations: 29.94 kB / 392.2 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.2973, allocations: 6.688 kB / 392.2 MB, free: 0.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005792/0.2979, allocations: 0.5034 MB / 392.7 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2979, allocations: 0 / 392.7 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007266/0.2986, allocations: 166.2 kB / 392.9 MB, free: 0.7109 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.0001835/0.2988, allocations: 114.7 kB / 393 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008426/0.2997, allocations: 474.1 kB / 393.5 MB, free: 428 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2997, allocations: 0.6875 kB / 393.5 MB, free: 428 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.3, allocations: 235.2 kB / 393.7 MB, free: 280 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008612/0.3009, allocations: 197.1 kB / 393.9 MB, free: 224 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.303, allocations: 1.411 MB / 395.3 MB, free: 15.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005708/0.3036, allocations: 0.9396 MB / 396.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003003/0.3039, allocations: 91.83 kB / 396.3 MB, free: 14.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.304, allocations: 46.84 kB / 396.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.304, allocations: 0 / 396.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of Templates: time 0.01577/0.3198, allocations: 8.157 MB / 404.5 MB, free: 10.84 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 -s gbode -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