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.0009871/0.0009869, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 225.6 MB / 234.8 MB, free: 3.188 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 101.6 kB / 286.7 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.729e-05/1.761e-05, allocations: 4 kB / 343.7 MB, free: 8.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 51.47 MB / 395.2 MB, free: 4.711 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3156/0.4262, allocations: 111.8 MB / 0.4951 GB, free: 13.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.4265, allocations: 83.44 kB / 0.4952 GB, free: 13.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1775/0.6039, allocations: 69.75 MB / 0.5633 GB, free: 12.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.604, allocations: 0 / 0.5633 GB, free: 12.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001647/0.6041, allocations: 63.94 kB / 0.5634 GB, free: 12.34 MB / 442.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.004466/0.6086, allocations: 2.415 MB / 0.5657 GB, free: 9.875 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.6087, allocations: 11.97 kB / 0.5657 GB, free: 9.863 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/0.6101, allocations: 491.6 kB / 0.5662 GB, free: 9.379 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003185/0.6133, allocations: 1.868 MB / 0.568 GB, free: 7.457 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.203e-05/0.6134, allocations: 88 kB / 0.5681 GB, free: 7.371 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.6137, allocations: 155.9 kB / 0.5683 GB, free: 7.219 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002513/0.6162, allocations: 1.389 MB / 0.5696 GB, free: 5.824 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00338/0.6196, allocations: 1.988 MB / 0.5716 GB, free: 3.715 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.536e-05/0.6197, allocations: 11.91 kB / 0.5716 GB, free: 3.703 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/0.6198, allocations: 8 kB / 0.5716 GB, free: 3.695 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.613e-05/0.6199, allocations: 64 kB / 0.5717 GB, free: 3.633 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2124/0.8323, allocations: 10.23 MB / 0.5816 GB, free: 76.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007807/0.8331, allocations: 0.8976 MB / 0.5825 GB, free: 75.72 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/0.8335, allocations: 317.9 kB / 0.5828 GB, free: 75.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.202e-05/0.8335, allocations: 13.62 kB / 0.5828 GB, free: 75.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.8336, allocations: 47.22 kB / 0.5829 GB, free: 75.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 2.876e-06/0.8336, allocations: 0 / 0.5829 GB, free: 75.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.002986/0.8366, allocations: 2.063 MB / 0.5849 GB, free: 74.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.8366, allocations: 164.4 kB / 0.5851 GB, free: 74.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/0.8382, allocations: 1.457 MB / 0.5865 GB, free: 74.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.8382, allocations: 25.7 kB / 0.5865 GB, free: 74.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006159/0.8389, allocations: 1.483 MB / 0.5879 GB, free: 73.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.839, allocations: 327.9 kB / 0.5883 GB, free: 73.76 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.839, allocations: 0 / 0.5883 GB, free: 73.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.911e-05/0.8391, allocations: 376.8 kB / 0.5886 GB, free: 73.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000412/0.8396, allocations: 298.5 kB / 0.5889 GB, free: 73.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006312/0.8402, allocations: 1.163 MB / 0.59 GB, free: 72.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006272/0.8408, allocations: 0.5063 MB / 0.5905 GB, free: 72.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.8408, allocations: 10.06 kB / 0.5905 GB, free: 72.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002011/0.8429, allocations: 1.542 MB / 0.592 GB, free: 72.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001608/0.8445, allocations: 12.26 MB / 0.604 GB, free: 59.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.8445, allocations: 29.84 kB / 0.6041 GB, free: 59.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004357/0.845, allocations: 164.2 kB / 0.6042 GB, free: 59.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.8461, allocations: 421.5 kB / 0.6046 GB, free: 59.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/0.8486, allocations: 5.324 MB / 0.6098 GB, free: 54.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.8498, allocations: 59.08 kB / 0.6099 GB, free: 54.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.341e-05/0.8499, allocations: 98.12 kB / 0.61 GB, free: 54.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.112e-06/0.8499, allocations: 5.156 kB / 0.61 GB, free: 54.4 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001701/0.8516, allocations: 1.297 MB / 0.6112 GB, free: 54.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/0.8517, allocations: 30.31 kB / 0.6113 GB, free: 54.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003508/0.852, allocations: 166.2 kB / 0.6114 GB, free: 54.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.8531, allocations: 414.3 kB / 0.6118 GB, free: 54.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002425/0.8555, allocations: 5.33 MB / 0.617 GB, free: 49.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.8566, allocations: 51.75 kB / 0.6171 GB, free: 49.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.179e-05/0.8567, allocations: 99.78 kB / 0.6172 GB, free: 49.45 MB / 442.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 () * 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.0002037/0.8569, allocations: 177.6 kB / 0.6173 GB, free: 49.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.8571, allocations: 209.9 kB / 0.6175 GB, free: 49.24 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.8583, allocations: 0.7795 MB / 0.6183 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.8583, allocations: 6.594 kB / 0.6183 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8584, allocations: 6.125 kB / 0.6183 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.8584, allocations: 3.422 kB / 0.6183 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003239/0.8616, allocations: 2.666 MB / 0.6209 GB, free: 48.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.8616, allocations: 6.219 kB / 0.6209 GB, free: 48.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000571/0.8622, allocations: 169.5 kB / 0.6211 GB, free: 48.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003352/0.8626, allocations: 125.2 kB / 0.6212 GB, free: 48.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.8626, allocations: 12.23 kB / 0.6212 GB, free: 48.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/0.865, allocations: 5.153 MB / 0.6262 GB, free: 43.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.865, allocations: 6.531 kB / 0.6263 GB, free: 43.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.8665, allocations: 1.75 MB / 0.628 GB, free: 42.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004949/0.867, allocations: 345.6 kB / 0.6283 GB, free: 42.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/0.8672, allocations: 9.344 kB / 0.6283 GB, free: 42.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007653/0.868, allocations: 45.39 kB / 0.6283 GB, free: 42.35 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.8681, allocations: 79.7 kB / 0.6284 GB, free: 42.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-05/0.8681, allocations: 34.31 kB / 0.6285 GB, free: 42.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001235/0.8694, allocations: 1.046 MB / 0.6295 GB, free: 42.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8694, allocations: 0 / 0.6295 GB, free: 42.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002721/0.8721, allocations: 0.8589 MB / 0.6303 GB, free: 42.19 MB / 442.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 () * 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.0004963/0.8726, allocations: 0.4951 MB / 0.6308 GB, free: 42.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002751/0.8754, allocations: 2.458 MB / 0.6332 GB, free: 41.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.8754, allocations: 7.875 kB / 0.6332 GB, free: 41.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006431/0.8761, allocations: 0.7505 MB / 0.6339 GB, free: 40.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.878, allocations: 483.4 kB / 0.6344 GB, free: 40.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004598/0.8826, allocations: 3.109 MB / 0.6374 GB, free: 39.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/0.8837, allocations: 1.628 MB / 0.639 GB, free: 38.49 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001807/0.8855, allocations: 376.9 kB / 0.6394 GB, free: 38.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.8857, allocations: 100.5 kB / 0.6395 GB, free: 38.39 MB / 442.7 MB Notification: Performance of SimCode: time 7.22e-07/0.8857, allocations: 0 / 0.6395 GB, free: 38.39 MB / 442.7 MB Notification: Performance of Templates: time 0.04337/0.9291, allocations: 25.68 MB / 0.6646 GB, free: 36.84 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/jenkins/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