Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001584/0.001584, allocations: 191.7 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 226.5 MB / 244.7 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007507/0.0007506, allocations: 101.3 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002122/0.0002122, allocations: 8 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1888, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.004755/0.1936, allocations: 6.3 MB / 414.4 MB, free: 21.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.1962, allocations: 2.21 MB / 416.6 MB, free: 19.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003434/0.1966, allocations: 16 kB / 416.6 MB, free: 19.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008515/0.1975, allocations: 429.6 kB / 417 MB, free: 18.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005108/0.198, allocations: 301.7 kB / 417.3 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.1983, allocations: 131.9 kB / 417.4 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007013/0.199, allocations: 1.117 MB / 418.5 MB, free: 17.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004871/0.1995, allocations: 434.7 kB / 419 MB, free: 16.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003559/0.1998, allocations: 378.3 kB / 419.3 MB, free: 16.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002981/0.2001, allocations: 410.1 kB / 419.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.058e-05/0.2002, allocations: 52 kB / 419.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.2004, allocations: 91.97 kB / 419.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.508e-05/0.2005, allocations: 163.2 kB / 420 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002846/0.2008, allocations: 487.4 kB / 420.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006534/0.2015, allocations: 1.122 MB / 421.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2015, allocations: 0 / 421.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2015, allocations: 0 / 421.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.2015, allocations: 0 / 421.6 MB, free: 14.04 MB / 298.7 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.001361/0.2029, allocations: 1.095 MB / 422.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2029, allocations: 12.03 kB / 422.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003976/0.2033, allocations: 147.6 kB / 422.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007084/0.204, allocations: 0.6377 MB / 423.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.2041, allocations: 58.38 kB / 423.6 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.3e-05/0.2042, allocations: 80.28 kB / 423.7 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.2052, allocations: 0.7871 MB / 424.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.2053, allocations: 0 / 424.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/0.2053, allocations: 36 kB / 424.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.2053, allocations: 20 kB / 424.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008827/0.2062, allocations: 0.5348 MB / 425 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00303/0.2093, allocations: 3.407 MB / 428.4 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.2097, allocations: 229.8 kB / 428.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.2099, allocations: 128.7 kB / 428.8 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.2099, allocations: 0 / 428.8 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.21, allocations: 38.56 kB / 428.8 MB, free: 6.484 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.102e-06/0.21, allocations: 7.875 kB / 428.8 MB, free: 6.477 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001625/0.2116, allocations: 1.077 MB / 429.9 MB, free: 5.324 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.2116, allocations: 81.34 kB / 430 MB, free: 5.227 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006977/0.2123, allocations: 0.7387 MB / 430.7 MB, free: 4.484 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.2124, allocations: 29.7 kB / 430.8 MB, free: 4.449 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.2126, allocations: 0.4904 MB / 431.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.954e-05/0.2126, allocations: 110.5 kB / 431.4 MB, free: 3.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.745e-05/0.2127, allocations: 8 kB / 431.4 MB, free: 3.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.923e-05/0.2127, allocations: 378.8 kB / 431.7 MB, free: 3.453 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.213, allocations: 137.2 kB / 431.9 MB, free: 3.316 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003216/0.2133, allocations: 422.2 kB / 432.3 MB, free: 2.773 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005889/0.2139, allocations: 0.5754 MB / 432.9 MB, free: 2.062 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2139, allocations: 4 kB / 432.9 MB, free: 2.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008702/0.2148, allocations: 0.6228 MB / 433.5 MB, free: 1.426 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.2148, allocations: 8 kB / 433.5 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.2149, allocations: 16 kB / 433.5 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001377/0.215, allocations: 32.84 kB / 433.5 MB, free: 1.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003808/0.2154, allocations: 144.1 kB / 433.7 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006573/0.2161, allocations: 1.284 MB / 435 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.2165, allocations: 48.05 kB / 435 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/0.2165, allocations: 28 kB / 435 MB, free: 15.73 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002805/0.2168, allocations: 237.5 kB / 435.3 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.853e-05/0.2169, allocations: 67.16 kB / 435.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006201/0.2175, allocations: 337.7 kB / 435.7 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.2175, allocations: 4 kB / 435.7 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2175, allocations: 7.875 kB / 435.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.2175, allocations: 3.984 kB / 435.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.219, allocations: 1.109 MB / 436.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2191, allocations: 4 kB / 436.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.2193, allocations: 68.11 kB / 436.9 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.132e-05/0.2194, allocations: 20.91 kB / 436.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.384e-05/0.2194, allocations: 11.98 kB / 436.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007843/0.2202, allocations: 1.276 MB / 438.2 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.2203, allocations: 7.938 kB / 438.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008339/0.2211, allocations: 0.5678 MB / 438.7 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.2213, allocations: 176.2 kB / 438.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.005e-05/0.2214, allocations: 15.92 kB / 438.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.2217, allocations: 27.92 kB / 439 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.08e-05/0.2218, allocations: 23.97 kB / 439 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.2218, allocations: 12 kB / 439 MB, free: 11.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006335/0.2224, allocations: 0.4912 MB / 439.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2224, allocations: 0 / 439.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005892/0.223, allocations: 160 kB / 439.6 MB, free: 10.84 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002009/0.2232, allocations: 123.1 kB / 439.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008043/0.2241, allocations: 476.5 kB / 440.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2241, allocations: 4.062 kB / 440.2 MB, free: 10.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003516/0.2244, allocations: 242.5 kB / 440.5 MB, free: 9.973 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.2255, allocations: 170.5 kB / 440.6 MB, free: 9.812 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.2277, allocations: 1.771 MB / 442.4 MB, free: 7.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004768/0.2282, allocations: 0.9414 MB / 443.3 MB, free: 7.008 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.2283, allocations: 55.42 kB / 443.4 MB, free: 6.953 MB / 314.7 MB Notification: Performance of SimCode: time 3.3e-07/0.2283, allocations: 0 / 443.4 MB, free: 6.953 MB / 314.7 MB Notification: Performance of Templates: time 0.01481/0.2431, allocations: 13.27 MB / 456.7 MB, free: 9.723 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches