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.001014/0.001015, allocations: 198.1 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.192/1.192, allocations: 227.2 MB / 245 MB, free: 5.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008152/0.0008152, allocations: 102.6 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002201/0.0002202, allocations: 4 kB / 357.9 MB, free: 9.309 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1787, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2742/0.4529, allocations: 112.6 MB / 0.5097 GB, free: 47.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.4532, allocations: 86.56 kB / 0.5098 GB, free: 47.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1514/0.6046, allocations: 70.73 MB / 0.5789 GB, free: 22.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.6046, allocations: 0 / 0.5789 GB, free: 22.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001292/0.6048, allocations: 59.94 kB / 0.5789 GB, free: 22.25 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.004233/0.609, allocations: 2.795 MB / 0.5817 GB, free: 19.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.609, allocations: 12.03 kB / 0.5817 GB, free: 19.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001326/0.6104, allocations: 491.6 kB / 0.5822 GB, free: 18.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002859/0.6133, allocations: 1.884 MB / 0.584 GB, free: 16.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.979e-05/0.6134, allocations: 193.2 kB / 0.5842 GB, free: 16.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002417/0.6136, allocations: 259.9 kB / 0.5844 GB, free: 16.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003142/0.6168, allocations: 2.443 MB / 0.5868 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-05/0.6168, allocations: 19.73 kB / 0.5868 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001689/0.617, allocations: 112 kB / 0.5869 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.152e-05/0.617, allocations: 67.98 kB / 0.587 GB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002379/0.6194, allocations: 1.646 MB / 0.5886 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009446/0.6289, allocations: 10.75 MB / 0.5991 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.6299, allocations: 1.001 MB / 0.6001 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.192e-05/0.63, allocations: 16.95 kB / 0.6001 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.6301, allocations: 43.56 kB / 0.6001 GB, free: 15.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=83): time 2.875e-06/0.6301, allocations: 0 / 0.6001 GB, free: 15.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.004959/0.635, allocations: 3.028 MB / 0.6031 GB, free: 12.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.309e-05/0.6351, allocations: 175.2 kB / 0.6033 GB, free: 12.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002647/0.6378, allocations: 1.831 MB / 0.6051 GB, free: 10.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.596e-05/0.6379, allocations: 45.7 kB / 0.6051 GB, free: 10.35 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009917/0.6389, allocations: 1.47 MB / 0.6065 GB, free: 8.859 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/0.6391, allocations: 343.2 kB / 0.6069 GB, free: 8.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.509e-05/0.6392, allocations: 44 kB / 0.6069 GB, free: 8.477 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.6393, allocations: 369.8 kB / 0.6073 GB, free: 8.109 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006464/0.64, allocations: 375.8 kB / 0.6076 GB, free: 7.742 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.6412, allocations: 1.26 MB / 0.6088 GB, free: 6.051 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008615/0.642, allocations: 0.5806 MB / 0.6094 GB, free: 5.473 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.275e-05/0.6421, allocations: 8 kB / 0.6094 GB, free: 5.465 MB / 394.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002807/0.6449, allocations: 1.881 MB / 0.6113 GB, free: 3.559 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003637/0.6485, allocations: 12.47 MB / 0.6234 GB, free: 5.734 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.41e-05/0.6486, allocations: 32 kB / 0.6235 GB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005559/0.6491, allocations: 175.3 kB / 0.6236 GB, free: 5.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.6503, allocations: 419.2 kB / 0.624 GB, free: 5.109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003763/0.6541, allocations: 5.593 MB / 0.6295 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.6557, allocations: 91.8 kB / 0.6296 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.6558, allocations: 96 kB / 0.6297 GB, free: 14.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.277e-06/0.6558, allocations: 4 kB / 0.6297 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002293/0.6581, allocations: 1.625 MB / 0.6313 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.6582, allocations: 32 kB / 0.6313 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000412/0.6586, allocations: 171.6 kB / 0.6315 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.6597, allocations: 415.3 kB / 0.6319 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006137/0.6658, allocations: 5.57 MB / 0.6373 GB, free: 6.438 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00276/0.6686, allocations: 88.2 kB / 0.6374 GB, free: 6.352 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/0.6688, allocations: 99.95 kB / 0.6375 GB, free: 6.254 MB / 426.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.001877/0.6707, allocations: 0.5823 MB / 0.638 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005514/0.6713, allocations: 229.2 kB / 0.6383 GB, free: 5.434 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003054/0.6743, allocations: 0.9498 MB / 0.6392 GB, free: 4.461 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.6744, allocations: 15.95 kB / 0.6392 GB, free: 4.445 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.6744, allocations: 0 / 0.6392 GB, free: 4.445 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.6744, allocations: 3.984 kB / 0.6392 GB, free: 4.441 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00809/0.6825, allocations: 3.128 MB / 0.6423 GB, free: 1.168 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.6826, allocations: 8.125 kB / 0.6423 GB, free: 1.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001235/0.6838, allocations: 163.7 kB / 0.6424 GB, free: 1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007442/0.6846, allocations: 127.4 kB / 0.6426 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.708e-05/0.6847, allocations: 27.98 kB / 0.6426 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00578/0.6905, allocations: 5.395 MB / 0.6478 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.455e-05/0.6905, allocations: 12.33 kB / 0.6479 GB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004252/0.6948, allocations: 1.999 MB / 0.6498 GB, free: 8.641 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.6959, allocations: 374.2 kB / 0.6502 GB, free: 8.254 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000349/0.6963, allocations: 39.92 kB / 0.6502 GB, free: 8.215 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.6976, allocations: 55.97 kB / 0.6503 GB, free: 8.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.6978, allocations: 76.36 kB / 0.6503 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.222e-05/0.6979, allocations: 32 kB / 0.6504 GB, free: 8.055 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003308/0.7012, allocations: 1.368 MB / 0.6517 GB, free: 6.676 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7012, allocations: 3.938 kB / 0.6517 GB, free: 6.672 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005285/0.7065, allocations: 0.9999 MB / 0.6527 GB, free: 5.672 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 () * 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.00108/0.7076, allocations: 0.526 MB / 0.6532 GB, free: 5.137 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006381/0.714, allocations: 2.756 MB / 0.6559 GB, free: 2.289 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.799e-06/0.7141, allocations: 7.938 kB / 0.6559 GB, free: 2.281 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.7156, allocations: 0.835 MB / 0.6567 GB, free: 1.395 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/0.7186, allocations: 0.565 MB / 0.6573 GB, free: 0.8398 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007096/0.7257, allocations: 5.088 MB / 0.6622 GB, free: 11.64 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.7269, allocations: 1.622 MB / 0.6638 GB, free: 9.984 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001459/0.7284, allocations: 331.4 kB / 0.6641 GB, free: 9.656 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002537/0.7286, allocations: 139.4 kB / 0.6643 GB, free: 9.523 MB / 458.7 MB Notification: Performance of SimCode: time 5.51e-07/0.7286, allocations: 0 / 0.6643 GB, free: 9.523 MB / 458.7 MB Notification: Performance of Templates: time 0.2216/0.9502, allocations: 30.06 MB / 0.6936 GB, free: 105.5 MB / 458.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