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.001585/0.001585, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008259/0.0008263, allocations: 90.62 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.307e-05/2.309e-05, allocations: 4 kB / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08802/0.08806, allocations: 51.48 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/0.3925, allocations: 112.5 MB / 0.5025 GB, free: 9.676 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.3928, allocations: 82.39 kB / 0.5025 GB, free: 9.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1784/0.5712, allocations: 70.8 MB / 0.5717 GB, free: 3.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5712, allocations: 0 / 0.5717 GB, free: 3.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000128/0.5714, allocations: 59.94 kB / 0.5717 GB, free: 3.441 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.003748/0.5751, allocations: 2.407 MB / 0.5741 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.5752, allocations: 15.97 kB / 0.5741 GB, free: 0.9688 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001403/0.5766, allocations: 491.7 kB / 0.5746 GB, free: 496 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2052/0.7818, allocations: 1.868 MB / 0.5764 GB, free: 79.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.785e-05/0.7819, allocations: 194.5 kB / 0.5766 GB, free: 79.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002975/0.7822, allocations: 262.1 kB / 0.5768 GB, free: 79.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003489/0.7857, allocations: 2.368 MB / 0.5792 GB, free: 79.44 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.416e-05/0.7858, allocations: 19.36 kB / 0.5792 GB, free: 79.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001718/0.786, allocations: 106.5 kB / 0.5793 GB, free: 79.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.425e-05/0.786, allocations: 66.59 kB / 0.5793 GB, free: 79.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002434/0.7884, allocations: 1.54 MB / 0.5808 GB, free: 79.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.011/0.7994, allocations: 10.73 MB / 0.5913 GB, free: 74.78 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009009/0.8004, allocations: 0.9384 MB / 0.5922 GB, free: 74.38 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.8008, allocations: 343.6 kB / 0.5926 GB, free: 74.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.643e-05/0.8009, allocations: 14.47 kB / 0.5926 GB, free: 74.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.8009, allocations: 44.44 kB / 0.5926 GB, free: 74.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 2.595e-06/0.8009, allocations: 0.8438 kB / 0.5926 GB, free: 74.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.003104/0.804, allocations: 2.245 MB / 0.5948 GB, free: 73.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.8041, allocations: 164.6 kB / 0.595 GB, free: 73.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001979/0.8061, allocations: 1.812 MB / 0.5967 GB, free: 73.07 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.8061, allocations: 43.86 kB / 0.5968 GB, free: 73.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006742/0.8068, allocations: 1.475 MB / 0.5982 GB, free: 72.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.807, allocations: 337.3 kB / 0.5985 GB, free: 72.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-05/0.807, allocations: 40.69 kB / 0.5986 GB, free: 72.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.88e-05/0.8071, allocations: 372.8 kB / 0.5989 GB, free: 71.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004728/0.8076, allocations: 333.2 kB / 0.5993 GB, free: 71.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007494/0.8083, allocations: 1.209 MB / 0.6004 GB, free: 70.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006775/0.809, allocations: 0.5531 MB / 0.601 GB, free: 70.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.8091, allocations: 13.89 kB / 0.601 GB, free: 70.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002169/0.8112, allocations: 1.791 MB / 0.6027 GB, free: 70.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001696/0.8129, allocations: 12.47 MB / 0.6149 GB, free: 57.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.813e-05/0.813, allocations: 29.81 kB / 0.615 GB, free: 57.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004592/0.8134, allocations: 170.5 kB / 0.6151 GB, free: 57.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.8145, allocations: 427.4 kB / 0.6155 GB, free: 57.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/0.8173, allocations: 5.545 MB / 0.6209 GB, free: 52.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.8186, allocations: 100.6 kB / 0.621 GB, free: 52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.146e-05/0.8187, allocations: 99.84 kB / 0.6211 GB, free: 52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.943e-06/0.8188, allocations: 3.938 kB / 0.6211 GB, free: 52 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001942/0.8207, allocations: 1.554 MB / 0.6226 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/0.8207, allocations: 28.69 kB / 0.6227 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003677/0.8211, allocations: 174.2 kB / 0.6228 GB, free: 51.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.8222, allocations: 413.5 kB / 0.6232 GB, free: 51.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002557/0.8247, allocations: 5.533 MB / 0.6286 GB, free: 46.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.826, allocations: 86.17 kB / 0.6287 GB, free: 46.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-05/0.8261, allocations: 97.81 kB / 0.6288 GB, free: 46.53 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.0002303/0.8264, allocations: 235 kB / 0.629 GB, free: 46.37 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.8266, allocations: 233.7 kB / 0.6293 GB, free: 46.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.828, allocations: 0.8719 MB / 0.6301 GB, free: 46.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.828, allocations: 16.62 kB / 0.6301 GB, free: 46.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/0.828, allocations: 6.547 kB / 0.6301 GB, free: 46.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.8281, allocations: 4.609 kB / 0.6301 GB, free: 46.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004247/0.8323, allocations: 3.045 MB / 0.6331 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.8323, allocations: 5.438 kB / 0.6331 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006033/0.833, allocations: 172.7 kB / 0.6333 GB, free: 45.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003649/0.8333, allocations: 128.7 kB / 0.6334 GB, free: 45.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.8334, allocations: 22.56 kB / 0.6334 GB, free: 45.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0026/0.836, allocations: 5.359 MB / 0.6387 GB, free: 40.36 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.836, allocations: 6.688 kB / 0.6387 GB, free: 40.36 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.8379, allocations: 1.89 MB / 0.6405 GB, free: 39.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000571/0.8385, allocations: 381 kB / 0.6409 GB, free: 39 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/0.8387, allocations: 27.11 kB / 0.6409 GB, free: 39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008382/0.8395, allocations: 62.23 kB / 0.641 GB, free: 39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.8397, allocations: 79.88 kB / 0.641 GB, free: 38.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.675e-05/0.8397, allocations: 28.97 kB / 0.6411 GB, free: 38.99 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001822/0.8415, allocations: 1.345 MB / 0.6424 GB, free: 38.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8416, allocations: 0 / 0.6424 GB, free: 38.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003017/0.8446, allocations: 1.005 MB / 0.6434 GB, free: 38.68 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.000629/0.8452, allocations: 0.519 MB / 0.6439 GB, free: 38.49 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003012/0.8482, allocations: 2.71 MB / 0.6465 GB, free: 36.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.8483, allocations: 1.375 kB / 0.6465 GB, free: 36.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007278/0.849, allocations: 0.8031 MB / 0.6473 GB, free: 36.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.851, allocations: 0.5555 MB / 0.6478 GB, free: 36.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00468/0.8557, allocations: 3.195 MB / 0.651 GB, free: 34.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.857, allocations: 1.626 MB / 0.6526 GB, free: 33.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001866/0.8588, allocations: 409.8 kB / 0.6529 GB, free: 33.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.859, allocations: 109.3 kB / 0.653 GB, free: 33.67 MB / 442.7 MB Notification: Performance of SimCode: time 7.51e-07/0.859, allocations: 0 / 0.653 GB, free: 33.67 MB / 442.7 MB Notification: Performance of Templates: time 0.04697/0.906, allocations: 33.75 MB / 0.686 GB, free: 31.78 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