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/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.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/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 199.8 kB / 18.11 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008129/0.0008127, allocations: 88.91 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002208/0.0002209, allocations: 8 kB / 358.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2102, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.5141, allocations: 112.6 MB / 0.5097 GB, free: 100.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.5145, allocations: 92.88 kB / 0.5098 GB, free: 100.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1507/0.6651, allocations: 70.45 MB / 0.5786 GB, free: 34.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6652, allocations: 0 / 0.5786 GB, free: 34.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001862/0.6654, allocations: 59.92 kB / 0.5787 GB, free: 34.06 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005127/0.6705, allocations: 2.764 MB / 0.5814 GB, free: 31.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.6706, allocations: 8.031 kB / 0.5814 GB, free: 31.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001659/0.6722, allocations: 491.7 kB / 0.5819 GB, free: 30.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003392/0.6756, allocations: 1.953 MB / 0.5838 GB, free: 28.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.6757, allocations: 197.2 kB / 0.584 GB, free: 28.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003407/0.6761, allocations: 259.9 kB / 0.5842 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003616/0.6797, allocations: 2.466 MB / 0.5866 GB, free: 25.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-05/0.6798, allocations: 15.91 kB / 0.5866 GB, free: 25.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001791/0.68, allocations: 112 kB / 0.5867 GB, free: 25.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-05/0.68, allocations: 64 kB / 0.5868 GB, free: 25.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002696/0.6827, allocations: 1.654 MB / 0.5884 GB, free: 23.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.6933, allocations: 10.74 MB / 0.5989 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.6944, allocations: 1.004 MB / 0.5999 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005228/0.695, allocations: 380.2 kB / 0.6002 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-05/0.695, allocations: 17 kB / 0.6003 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.6951, allocations: 43.5 kB / 0.6003 GB, free: 10.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.615e-06/0.6951, allocations: 0 / 0.6003 GB, free: 10.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.004988/0.7001, allocations: 3.028 MB / 0.6033 GB, free: 7.836 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.7001, allocations: 167.2 kB / 0.6034 GB, free: 7.637 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002492/0.7026, allocations: 2.1 MB / 0.6055 GB, free: 5.516 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.7027, allocations: 41.7 kB / 0.6055 GB, free: 5.469 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007363/0.7034, allocations: 1.466 MB / 0.6069 GB, free: 3.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.7036, allocations: 339.2 kB / 0.6073 GB, free: 3.645 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.693e-05/0.7037, allocations: 36 kB / 0.6073 GB, free: 3.609 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.7038, allocations: 373.9 kB / 0.6077 GB, free: 3.238 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/0.7044, allocations: 375.8 kB / 0.608 GB, free: 2.871 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008877/0.7053, allocations: 1.264 MB / 0.6092 GB, free: 1.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001831/0.7071, allocations: 1.765 MB / 0.611 GB, free: 15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/0.7071, allocations: 12 kB / 0.611 GB, free: 14.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.003035/0.7102, allocations: 1.877 MB / 0.6128 GB, free: 13.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006259/0.7108, allocations: 0.9775 MB / 0.6138 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-05/0.7109, allocations: 32 kB / 0.6138 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005474/0.7114, allocations: 171.3 kB / 0.614 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.7126, allocations: 423.2 kB / 0.6144 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004343/0.7169, allocations: 5.55 MB / 0.6198 GB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/0.7189, allocations: 103.9 kB / 0.6199 GB, free: 4.883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/0.7191, allocations: 92 kB / 0.62 GB, free: 4.793 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.707e-06/0.7191, allocations: 4 kB / 0.62 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002704/0.7218, allocations: 1.628 MB / 0.6216 GB, free: 3.148 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.988e-05/0.7219, allocations: 28 kB / 0.6216 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004602/0.7223, allocations: 172.3 kB / 0.6218 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.7235, allocations: 411.2 kB / 0.6221 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003815/0.7273, allocations: 5.546 MB / 0.6276 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.7289, allocations: 83.89 kB / 0.6276 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/0.7291, allocations: 96 kB / 0.6277 GB, free: 12.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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 (226): * Single equations (assignments): 222 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001252/0.7304, allocations: 0.594 MB / 0.6283 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000443/0.7308, allocations: 233.2 kB / 0.6285 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.7326, allocations: 0.9498 MB / 0.6295 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.7327, allocations: 8 kB / 0.6295 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.7327, allocations: 8 kB / 0.6295 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.7327, allocations: 3.984 kB / 0.6295 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005271/0.738, allocations: 3.116 MB / 0.6325 GB, free: 7.203 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.738, allocations: 4 kB / 0.6325 GB, free: 7.199 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005858/0.7386, allocations: 167.8 kB / 0.6327 GB, free: 7.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004137/0.739, allocations: 135.8 kB / 0.6328 GB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.333e-05/0.7391, allocations: 27.94 kB / 0.6328 GB, free: 6.863 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003838/0.7429, allocations: 5.367 MB / 0.6381 GB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.7429, allocations: 7.938 kB / 0.6381 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00282/0.7458, allocations: 1.535 MB / 0.6396 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/0.7471, allocations: 378.2 kB / 0.64 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007266/0.7479, allocations: 24 kB / 0.64 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.749, allocations: 59.95 kB / 0.64 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.7492, allocations: 84.28 kB / 0.6401 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.165e-05/0.7493, allocations: 32 kB / 0.6401 GB, free: 14.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002553/0.7518, allocations: 1.364 MB / 0.6415 GB, free: 13.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 2e-07/0.7518, allocations: 4 kB / 0.6415 GB, free: 13.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004491/0.7563, allocations: 1.004 MB / 0.6425 GB, free: 12.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * 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 (83): * Single equations (assignments): 79 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008768/0.7572, allocations: 0.5267 MB / 0.643 GB, free: 11.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004337/0.7616, allocations: 2.755 MB / 0.6457 GB, free: 8.965 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.7616, allocations: 0 / 0.6457 GB, free: 8.965 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.7627, allocations: 0.8433 MB / 0.6465 GB, free: 8.074 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004776/0.7675, allocations: 0.5552 MB / 0.647 GB, free: 7.523 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00885/0.7763, allocations: 5.105 MB / 0.652 GB, free: 2.312 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001707/0.7781, allocations: 1.568 MB / 0.6535 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001755/0.7798, allocations: 327.4 kB / 0.6539 GB, free: 400 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003636/0.7802, allocations: 135.4 kB / 0.654 GB, free: 268 kB / 426.7 MB Notification: Performance of SimCode: time 7.61e-07/0.7802, allocations: 0 / 0.654 GB, free: 268 kB / 426.7 MB Notification: Performance of Templates: time 0.3186/1.099, allocations: 30.53 MB / 0.6838 GB, free: 90.42 MB / 442.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches