Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007876/0.0007877, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008814/0.0008814, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.098/1.098, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000172/0.000172, allocations: 4 kB / 307.7 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06952/0.0697, allocations: 51.53 MB / 359.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1267/0.1965, allocations: 17.91 MB / 377.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006187/0.2027, allocations: 5.62 MB / 382.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000842/0.2036, allocations: 65.72 kB / 382.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001943/0.2055, allocations: 1.149 MB / 384 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001696/0.2072, allocations: 1.044 MB / 385 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000843/0.2081, allocations: 0.5834 MB / 385.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002431/0.2105, allocations: 3.72 MB / 389.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.2119, allocations: 1.337 MB / 390.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001223/0.2131, allocations: 1.212 MB / 391.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.2142, allocations: 1.361 MB / 393.3 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002441/0.2144, allocations: 174.6 kB / 393.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004508/0.2149, allocations: 213.6 kB / 393.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002978/0.2152, allocations: 0.5121 MB / 394.2 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009744/0.2162, allocations: 1.558 MB / 395.7 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002237/0.2184, allocations: 4.309 MB / 400 MB, free: 308 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2184, allocations: 0 / 400 MB, free: 308 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2184, allocations: 3.984 kB / 400 MB, free: 304 kB / 302.1 MB Notification: Performance of Transformations before backend: time 2.722e-05/0.2185, allocations: 0 / 400 MB, free: 304 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.003708/0.2222, allocations: 2.808 MB / 402.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.2222, allocations: 9.406 kB / 402.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001289/0.2235, allocations: 487.1 kB / 403.3 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00206/0.2256, allocations: 1.706 MB / 405 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.973e-05/0.2257, allocations: 194.9 kB / 405.2 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002407/0.2259, allocations: 265.5 kB / 405.5 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00321/0.2292, allocations: 2.48 MB / 407.9 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.635e-05/0.2292, allocations: 11.47 kB / 408 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001643/0.2294, allocations: 109.1 kB / 408.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-05/0.2294, allocations: 64.31 kB / 408.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002505/0.232, allocations: 1.659 MB / 409.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009918/0.2419, allocations: 10.7 MB / 420.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.243, allocations: 1.073 MB / 421.6 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005057/0.2435, allocations: 376.5 kB / 421.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.2436, allocations: 8.656 kB / 421.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.2436, allocations: 43.22 kB / 422 MB, free: 12.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 1.804e-06/0.2436, allocations: 0 / 422 MB, free: 12.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.003997/0.2476, allocations: 2.972 MB / 425 MB, free: 9.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.2477, allocations: 163.2 kB / 425.1 MB, free: 9.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002382/0.2501, allocations: 2.198 MB / 427.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.2501, allocations: 49.69 kB / 427.4 MB, free: 7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008376/0.251, allocations: 1.47 MB / 428.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.2512, allocations: 331.4 kB / 429.2 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.2513, allocations: 141.6 kB / 429.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 7.102e-05/0.2514, allocations: 301.1 kB / 429.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005755/0.2519, allocations: 375.8 kB / 430 MB, free: 4.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.253, allocations: 1.246 MB / 431.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001698/0.2547, allocations: 1.738 MB / 432.9 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/0.2547, allocations: 8 kB / 432.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002417/0.2571, allocations: 1.858 MB / 434.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004705/0.2576, allocations: 0.9649 MB / 435.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.2577, allocations: 35.92 kB / 435.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003945/0.2581, allocations: 151.4 kB / 436 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.2591, allocations: 419.2 kB / 436.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003044/0.2621, allocations: 5.36 MB / 441.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.2632, allocations: 103.9 kB / 441.8 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.89e-05/0.2633, allocations: 92 kB / 441.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.691e-06/0.2633, allocations: 4 kB / 441.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002002/0.2653, allocations: 1.589 MB / 443.5 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.43e-05/0.2653, allocations: 32 kB / 443.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000322/0.2657, allocations: 151.9 kB / 443.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009703/0.2667, allocations: 415.2 kB / 444.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002958/0.2696, allocations: 5.344 MB / 449.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009432/0.2706, allocations: 84.11 kB / 449.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-05/0.2707, allocations: 95.98 kB / 449.6 MB, free: 14.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006562/0.2713, allocations: 0.59 MB / 450.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.2716, allocations: 233.2 kB / 450.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.273, allocations: 0.9302 MB / 451.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.273, allocations: 8 kB / 451.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.273, allocations: 7.984 kB / 451.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.273, allocations: 11.86 kB / 451.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003646/0.2767, allocations: 3.132 MB / 454.5 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.2767, allocations: 8 kB / 454.5 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005241/0.2772, allocations: 163.8 kB / 454.7 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003105/0.2775, allocations: 123.4 kB / 454.8 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.2776, allocations: 24 kB / 454.8 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002948/0.2805, allocations: 5.32 MB / 460.1 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.2805, allocations: 4 kB / 460.2 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.2824, allocations: 1.518 MB / 461.7 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004393/0.2828, allocations: 386.2 kB / 462 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.283, allocations: 28.11 kB / 462.1 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007762/0.2838, allocations: 67.91 kB / 462.1 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.2839, allocations: 84.28 kB / 462.2 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.284, allocations: 28 kB / 462.3 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001661/0.2856, allocations: 1.458 MB / 463.7 MB, free: 15.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2856, allocations: 3.938 kB / 463.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002138/0.2878, allocations: 0.9336 MB / 464.6 MB, free: 14.43 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001864/0.288, allocations: 155.5 kB / 464.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002958/0.2909, allocations: 2.709 MB / 467.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2909, allocations: 0 / 467.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008423/0.2918, allocations: 0.839 MB / 468.3 MB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003613/0.2954, allocations: 0.5633 MB / 468.9 MB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/0.3007, allocations: 5.391 MB / 474.3 MB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009167/0.3017, allocations: 1.559 MB / 475.9 MB, free: 2.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001037/0.3027, allocations: 327.2 kB / 476.2 MB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002442/0.303, allocations: 139.4 kB / 476.3 MB, free: 2.488 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.303, allocations: 0 / 476.3 MB, free: 2.488 MB / 382.1 MB Notification: Performance of Templates: time 0.03574/0.3387, allocations: 26.71 MB / 0.4912 GB, free: 8.047 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches