Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001729, allocations: 198.2 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008046/0.0008048, allocations: 100.7 kB / 296.4 MB, free: 6.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001872/0.0001872, allocations: 7.938 kB / 356.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1759/0.1761, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.004533/0.1807, allocations: 7.038 MB / 414.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002125/0.1829, allocations: 2.452 MB / 417 MB, free: 18.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003112/0.1832, allocations: 23.94 kB / 417 MB, free: 18.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007518/0.1839, allocations: 465.4 kB / 417.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004693/0.1844, allocations: 373.2 kB / 417.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.1847, allocations: 151.8 kB / 418 MB, free: 17.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006667/0.1853, allocations: 1.292 MB / 419.3 MB, free: 16.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.1857, allocations: 435.2 kB / 419.7 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.1861, allocations: 445.9 kB / 420.1 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.1864, allocations: 489.7 kB / 420.6 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.905e-05/0.1865, allocations: 64 kB / 420.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.1867, allocations: 99.97 kB / 420.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.24e-05/0.1868, allocations: 191.1 kB / 421 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.1869, allocations: 253.1 kB / 421.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00068/0.1876, allocations: 1.328 MB / 422.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1876, allocations: 3.984 kB / 422.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1876, allocations: 3.938 kB / 422.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.1876, allocations: 0 / 422.5 MB, free: 12.73 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001473/0.1891, allocations: 1.258 MB / 423.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.1892, allocations: 12.03 kB / 423.8 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004417/0.1896, allocations: 170.5 kB / 424 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007415/0.1904, allocations: 0.6835 MB / 424.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.1904, allocations: 73.95 kB / 424.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.576e-05/0.1905, allocations: 96 kB / 424.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.1917, allocations: 0.9229 MB / 425.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.1917, allocations: 7.891 kB / 425.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.24e-05/0.1918, allocations: 43.98 kB / 425.8 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.1918, allocations: 24 kB / 425.8 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009525/0.1928, allocations: 0.6286 MB / 426.5 MB, free: 8.688 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003228/0.196, allocations: 3.929 MB / 430.4 MB, free: 4.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/0.1964, allocations: 357.3 kB / 430.7 MB, free: 4.145 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.1967, allocations: 156.6 kB / 430.9 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.1967, allocations: 11.94 kB / 430.9 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.1968, allocations: 38.56 kB / 430.9 MB, free: 3.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.372e-06/0.1968, allocations: 0 / 430.9 MB, free: 3.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001668/0.1984, allocations: 1.214 MB / 432.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/0.1985, allocations: 85.05 kB / 432.2 MB, free: 2.539 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007333/0.1992, allocations: 0.8252 MB / 433.1 MB, free: 1.707 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.1992, allocations: 33.7 kB / 433.1 MB, free: 1.668 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/0.1995, allocations: 0.564 MB / 433.6 MB, free: 1.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/0.1995, allocations: 138.1 kB / 433.8 MB, free: 0.957 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.759e-05/0.1995, allocations: 12 kB / 433.8 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.724e-05/0.1996, allocations: 330 kB / 434.1 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.1999, allocations: 153.9 kB / 434.3 MB, free: 480 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/0.2002, allocations: 464 kB / 434.7 MB, free: 15.87 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.2006, allocations: 219.9 kB / 434.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.2006, allocations: 8 kB / 434.9 MB, free: 15.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001026/0.2017, allocations: 0.7037 MB / 435.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.2017, allocations: 10.97 kB / 435.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.2017, allocations: 11.98 kB / 435.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001256/0.2018, allocations: 37.17 kB / 435.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.2023, allocations: 163.7 kB / 435.9 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007967/0.2031, allocations: 1.292 MB / 437.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004171/0.2035, allocations: 35.98 kB / 437.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/0.2036, allocations: 36 kB / 437.2 MB, free: 13.22 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * 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.0002846/0.2039, allocations: 257.7 kB / 437.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.572e-05/0.204, allocations: 90.92 kB / 437.6 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006702/0.2047, allocations: 387.5 kB / 437.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2047, allocations: 4 kB / 438 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.2047, allocations: 0 / 438 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.2047, allocations: 4 kB / 438 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.2063, allocations: 1.285 MB / 439.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.2063, allocations: 4 kB / 439.2 MB, free: 11.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.2066, allocations: 75.89 kB / 439.3 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.976e-05/0.2066, allocations: 24.81 kB / 439.3 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.2067, allocations: 8 kB / 439.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007236/0.2074, allocations: 1.28 MB / 440.6 MB, free: 9.578 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.2074, allocations: 4.031 kB / 440.6 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008739/0.2083, allocations: 0.6507 MB / 441.3 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.2085, allocations: 192.1 kB / 441.5 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.504e-05/0.2086, allocations: 12 kB / 441.5 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003562/0.209, allocations: 27.97 kB / 441.5 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.209, allocations: 27.91 kB / 441.5 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.209, allocations: 12 kB / 441.6 MB, free: 8.594 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006194/0.2097, allocations: 0.5537 MB / 442.1 MB, free: 8.047 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2097, allocations: 0 / 442.1 MB, free: 8.047 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005649/0.2103, allocations: 192 kB / 442.3 MB, free: 7.859 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.0001705/0.2104, allocations: 119.2 kB / 442.4 MB, free: 7.734 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008018/0.2112, allocations: 0.5085 MB / 442.9 MB, free: 7.215 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2113, allocations: 4 kB / 442.9 MB, free: 7.211 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003629/0.2116, allocations: 271 kB / 443.2 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009085/0.2125, allocations: 213.5 kB / 443.4 MB, free: 6.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.2149, allocations: 2.132 MB / 445.5 MB, free: 4.547 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/0.2154, allocations: 0.9926 MB / 446.5 MB, free: 3.527 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.2155, allocations: 59.38 kB / 446.6 MB, free: 3.469 MB / 314.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2155, allocations: 0 / 446.6 MB, free: 3.469 MB / 314.7 MB Notification: Performance of Templates: time 0.01589/0.2314, allocations: 15.58 MB / 462.2 MB, free: 3.914 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches