Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009802/0.0009802, allocations: 204.1 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007542/0.0007543, allocations: 103.8 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002504/0.0002506, allocations: 8 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1913, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1039/0.2953, allocations: 99.46 MB / 0.4962 GB, free: 8.105 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.2956, allocations: 87.95 kB / 0.4963 GB, free: 8.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2151/0.5107, allocations: 28.14 MB / 0.5238 GB, free: 88.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.5108, allocations: 0 / 0.5238 GB, free: 88.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.496e-05/0.5108, allocations: 20 kB / 0.5238 GB, free: 88.56 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001656/0.5125, allocations: 1.251 MB / 0.525 GB, free: 87.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.5125, allocations: 8.031 kB / 0.525 GB, free: 87.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005406/0.5131, allocations: 183.4 kB / 0.5252 GB, free: 87.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.5142, allocations: 0.8215 MB / 0.526 GB, free: 86.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.5142, allocations: 77.98 kB / 0.5261 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.5143, allocations: 103.9 kB / 0.5262 GB, free: 86.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.5156, allocations: 0.9268 MB / 0.5271 GB, free: 85.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.305e-05/0.5157, allocations: 11.94 kB / 0.5271 GB, free: 85.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.039e-05/0.5157, allocations: 44 kB / 0.5271 GB, free: 85.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.5158, allocations: 27.94 kB / 0.5272 GB, free: 85.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.5168, allocations: 0.6325 MB / 0.5278 GB, free: 84.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003893/0.5207, allocations: 3.914 MB / 0.5316 GB, free: 80.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.5213, allocations: 465.8 kB / 0.5321 GB, free: 79.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004366/0.5217, allocations: 271.8 kB / 0.5323 GB, free: 79.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.5218, allocations: 4 kB / 0.5323 GB, free: 79.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.67e-05/0.5218, allocations: 38.56 kB / 0.5324 GB, free: 79.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 3.115e-06/0.5218, allocations: 0 / 0.5324 GB, free: 79.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002447/0.5242, allocations: 1.593 MB / 0.5339 GB, free: 77.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.5243, allocations: 81.55 kB / 0.534 GB, free: 77.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007906/0.5251, allocations: 0.7862 MB / 0.5348 GB, free: 76.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.5251, allocations: 37.64 kB / 0.5348 GB, free: 76.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002244/0.5253, allocations: 0.5524 MB / 0.5353 GB, free: 76.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.527e-05/0.5254, allocations: 169.6 kB / 0.5355 GB, free: 76.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.5255, allocations: 16 kB / 0.5355 GB, free: 76.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.25e-05/0.5255, allocations: 337.9 kB / 0.5358 GB, free: 75.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.5258, allocations: 173.9 kB / 0.536 GB, free: 75.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003842/0.5262, allocations: 484 kB / 0.5365 GB, free: 75.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.5269, allocations: 0.6751 MB / 0.5371 GB, free: 74.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.5269, allocations: 0 / 0.5371 GB, free: 74.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001137/0.5281, allocations: 0.8053 MB / 0.5379 GB, free: 73.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.5281, allocations: 8 kB / 0.5379 GB, free: 73.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.5281, allocations: 8 kB / 0.5379 GB, free: 73.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/0.5284, allocations: 93.95 kB / 0.538 GB, free: 73.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.5289, allocations: 163.7 kB / 0.5382 GB, free: 73.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001711/0.5306, allocations: 3.001 MB / 0.5411 GB, free: 69.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005626/0.5312, allocations: 39.97 kB / 0.5411 GB, free: 69.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.5312, allocations: 32 kB / 0.5412 GB, free: 69.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004257/0.5317, allocations: 273.4 kB / 0.5414 GB, free: 69.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.364e-05/0.5318, allocations: 82.97 kB / 0.5415 GB, free: 69.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000843/0.5326, allocations: 0.5222 MB / 0.542 GB, free: 68.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.5326, allocations: 4 kB / 0.542 GB, free: 68.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.5326, allocations: 4 kB / 0.542 GB, free: 68.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.403e-06/0.5326, allocations: 7.984 kB / 0.542 GB, free: 68.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.5344, allocations: 1.458 MB / 0.5435 GB, free: 67.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.5344, allocations: 3.984 kB / 0.5435 GB, free: 67.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.5347, allocations: 79.84 kB / 0.5435 GB, free: 67.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002101/0.5349, allocations: 93.56 kB / 0.5436 GB, free: 67.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/0.535, allocations: 8 kB / 0.5436 GB, free: 67.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001647/0.5366, allocations: 2.982 MB / 0.5465 GB, free: 63.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.5366, allocations: 4.031 kB / 0.5465 GB, free: 63.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.5378, allocations: 0.8282 MB / 0.5474 GB, free: 63.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.5381, allocations: 196 kB / 0.5475 GB, free: 62.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.839e-05/0.5382, allocations: 12 kB / 0.5476 GB, free: 62.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.5385, allocations: 35.97 kB / 0.5476 GB, free: 62.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/0.5386, allocations: 39.83 kB / 0.5476 GB, free: 62.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.5387, allocations: 16 kB / 0.5476 GB, free: 62.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006287/0.5393, allocations: 0.5303 MB / 0.5482 GB, free: 62.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5393, allocations: 0 / 0.5482 GB, free: 62.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009102/0.5402, allocations: 243.9 kB / 0.5484 GB, free: 61.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003637/0.5406, allocations: 301.8 kB / 0.5487 GB, free: 61.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.5416, allocations: 0.7232 MB / 0.5494 GB, free: 60.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.5416, allocations: 0 / 0.5494 GB, free: 60.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005194/0.5421, allocations: 466 kB / 0.5498 GB, free: 60.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.5433, allocations: 215.9 kB / 0.55 GB, free: 60.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.5458, allocations: 2.156 MB / 0.5521 GB, free: 58.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.5461, allocations: 1.005 MB / 0.5531 GB, free: 56.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.5463, allocations: 67.42 kB / 0.5532 GB, free: 56.92 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5463, allocations: 0 / 0.5532 GB, free: 56.92 MB / 378.7 MB Notification: Performance of Templates: time 0.01983/0.5661, allocations: 21.7 MB / 0.5744 GB, free: 35.24 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches