Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 199.3 kB / 18.06 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 245.4 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007796/0.0007797, allocations: 97.3 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002111/0.0002111, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1867, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2574/0.4441, allocations: 112.6 MB / 0.509 GB, free: 100.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.4444, allocations: 81.42 kB / 0.5091 GB, free: 100.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1495/0.5939, allocations: 70.45 MB / 0.5779 GB, free: 34.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.594, allocations: 0 / 0.5779 GB, free: 34.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001135/0.5941, allocations: 59.94 kB / 0.578 GB, free: 34.12 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.003691/0.5978, allocations: 2.767 MB / 0.5807 GB, free: 31.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.5978, allocations: 12.03 kB / 0.5807 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.5991, allocations: 479.7 kB / 0.5812 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/0.6017, allocations: 1.956 MB / 0.5831 GB, free: 28.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.762e-05/0.6018, allocations: 197.2 kB / 0.5833 GB, free: 28.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002493/0.6021, allocations: 259.9 kB / 0.5835 GB, free: 28.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003162/0.6052, allocations: 2.466 MB / 0.5859 GB, free: 25.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.464e-05/0.6053, allocations: 11.91 kB / 0.5859 GB, free: 25.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001858/0.6055, allocations: 108 kB / 0.586 GB, free: 25.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.189e-05/0.6056, allocations: 64 kB / 0.5861 GB, free: 25.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002485/0.608, allocations: 1.654 MB / 0.5877 GB, free: 23.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008997/0.617, allocations: 10.74 MB / 0.5982 GB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009895/0.6181, allocations: 1.011 MB / 0.5992 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004839/0.6186, allocations: 388.2 kB / 0.5995 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.885e-05/0.6186, allocations: 9 kB / 0.5996 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.6186, allocations: 43.5 kB / 0.5996 GB, free: 11.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.415e-06/0.6186, allocations: 0 / 0.5996 GB, free: 11.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.003894/0.6225, allocations: 3.027 MB / 0.6026 GB, free: 7.898 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.6226, allocations: 171.2 kB / 0.6027 GB, free: 7.695 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/0.6247, allocations: 2.097 MB / 0.6048 GB, free: 5.578 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.6248, allocations: 41.7 kB / 0.6048 GB, free: 5.531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006297/0.6254, allocations: 1.466 MB / 0.6062 GB, free: 4.043 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.6256, allocations: 347.2 kB / 0.6066 GB, free: 3.699 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-05/0.6256, allocations: 36 kB / 0.6066 GB, free: 3.664 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.597e-05/0.6257, allocations: 373.9 kB / 0.607 GB, free: 3.293 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005862/0.6263, allocations: 375.8 kB / 0.6073 GB, free: 2.926 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008632/0.6272, allocations: 1.264 MB / 0.6086 GB, free: 1.234 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.6289, allocations: 1.768 MB / 0.6103 GB, free: 15.05 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/0.629, allocations: 8 kB / 0.6103 GB, free: 15.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002805/0.6318, allocations: 1.882 MB / 0.6121 GB, free: 13.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005622/0.6323, allocations: 0.9703 MB / 0.6131 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/0.6324, allocations: 28 kB / 0.6131 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004989/0.6329, allocations: 163.4 kB / 0.6133 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.634, allocations: 435.2 kB / 0.6137 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003929/0.638, allocations: 5.547 MB / 0.6191 GB, free: 5.043 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.6393, allocations: 99.95 kB / 0.6192 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.6394, allocations: 92 kB / 0.6193 GB, free: 4.855 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.552e-06/0.6394, allocations: 4 kB / 0.6193 GB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002482/0.6419, allocations: 1.628 MB / 0.6209 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.372e-05/0.642, allocations: 36.94 kB / 0.6209 GB, free: 3.176 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004212/0.6424, allocations: 163.4 kB / 0.6211 GB, free: 3.004 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.6435, allocations: 415.2 kB / 0.6214 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003848/0.6474, allocations: 5.542 MB / 0.6269 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001363/0.6488, allocations: 87.89 kB / 0.6269 GB, free: 12.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.6489, allocations: 92 kB / 0.627 GB, free: 12.35 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.001061/0.65, allocations: 0.594 MB / 0.6276 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002712/0.6502, allocations: 229.2 kB / 0.6278 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.6519, allocations: 0.9537 MB / 0.6288 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.6519, allocations: 8 kB / 0.6288 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.6519, allocations: 4 kB / 0.6288 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.6519, allocations: 3.984 kB / 0.6288 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004447/0.6564, allocations: 3.124 MB / 0.6318 GB, free: 7.262 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.6564, allocations: 4 kB / 0.6318 GB, free: 7.258 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005912/0.657, allocations: 168.5 kB / 0.632 GB, free: 7.094 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003947/0.6574, allocations: 131.3 kB / 0.6321 GB, free: 6.953 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.807e-05/0.6575, allocations: 31.94 kB / 0.6321 GB, free: 6.922 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003534/0.661, allocations: 5.363 MB / 0.6374 GB, free: 1.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.661, allocations: 11.94 kB / 0.6374 GB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.6632, allocations: 1.539 MB / 0.6389 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005506/0.6638, allocations: 374.2 kB / 0.6393 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002227/0.664, allocations: 24 kB / 0.6393 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008101/0.6648, allocations: 63.95 kB / 0.6393 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.6649, allocations: 76.34 kB / 0.6394 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.665, allocations: 35.94 kB / 0.6394 GB, free: 14.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001893/0.6669, allocations: 1.368 MB / 0.6408 GB, free: 13.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6669, allocations: 0 / 0.6408 GB, free: 13.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002779/0.6697, allocations: 1.004 MB / 0.6418 GB, free: 12.4 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.0006316/0.6703, allocations: 0.5253 MB / 0.6423 GB, free: 11.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003528/0.6739, allocations: 2.751 MB / 0.645 GB, free: 9.027 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.6739, allocations: 4 kB / 0.645 GB, free: 9.023 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009823/0.6749, allocations: 0.844 MB / 0.6458 GB, free: 8.133 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003855/0.6787, allocations: 0.5633 MB / 0.6463 GB, free: 7.574 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006204/0.685, allocations: 5.162 MB / 0.6514 GB, free: 2.301 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/0.6861, allocations: 1.568 MB / 0.6529 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/0.6865, allocations: 151.4 kB / 0.6531 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of SimCode: time 3.21e-07/0.6865, allocations: 0 / 0.6531 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of Templates: time 0.2632/0.9497, allocations: 80 MB / 0.7312 GB, free: 74.53 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches