Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 92.59 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 183.8 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002296/0.0002297, allocations: 5.812 kB / 300.7 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08792, allocations: 50.42 MB / 351.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02957/0.1176, allocations: 31.63 MB / 382.8 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01968/0.1373, allocations: 10.01 MB / 392.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007118/0.1444, allocations: 267 kB / 393.1 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009328/0.1538, allocations: 2.075 MB / 395.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01195/0.1658, allocations: 3.53 MB / 398.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006328/0.1721, allocations: 1.79 MB / 400.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01571/0.1878, allocations: 9.983 MB / 410.4 MB, free: 300 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2311/0.419, allocations: 19.71 MB / 430.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01252/0.4315, allocations: 4.511 MB / 434.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01319/0.4448, allocations: 5.131 MB / 439.8 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00581/0.4506, allocations: 0.7555 MB / 440.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007651/0.4583, allocations: 1.066 MB / 441.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004799/0.4631, allocations: 2.385 MB / 444 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005283/0.4684, allocations: 2.512 MB / 446.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02581/0.4943, allocations: 21.94 MB / 468.5 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4943, allocations: 0 / 468.5 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.4943, allocations: 64 / 468.5 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.0009931/0.4953, allocations: 2.781 kB / 468.5 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03848/0.5338, allocations: 12.5 MB / 481 MB, free: 9.691 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.5339, allocations: 9.328 kB / 481 MB, free: 9.691 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03478/0.5687, allocations: 6.062 MB / 487 MB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01855/0.5873, allocations: 7.707 MB / 494.7 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001081/0.5884, allocations: 0.9134 MB / 495.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005316/0.5937, allocations: 1.191 MB / 496.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05154/0.6453, allocations: 18.47 MB / 0.5032 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004949/0.6458, allocations: 16.42 kB / 0.5032 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004348/0.6502, allocations: 0.4908 MB / 0.5037 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000714/0.6509, allocations: 0.6498 MB / 0.5044 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04073/0.6917, allocations: 16.67 MB / 0.5206 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1121/0.8038, allocations: 58.98 MB / 0.5782 GB, free: 5.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2284/1.032, allocations: 32.82 MB / 0.6103 GB, free: 104.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01948/1.052, allocations: 8.745 MB / 0.6188 GB, free: 104.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.316e-05/1.052, allocations: 77.2 kB / 0.6189 GB, free: 104.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=359): time 4.909e-06/1.052, allocations: 1.375 kB / 0.6189 GB, free: 104.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=399): time 0.04238/1.094, allocations: 17.63 MB / 0.6361 GB, free: 98.12 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/1.094, allocations: 92.39 kB / 0.6362 GB, free: 98.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01247/1.107, allocations: 4.939 MB / 0.641 GB, free: 96.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008773/1.108, allocations: 92.94 kB / 0.6411 GB, free: 96.14 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00417/1.112, allocations: 5.423 MB / 0.6464 GB, free: 92.06 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001644/1.114, allocations: 1.394 MB / 0.6478 GB, free: 91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005054/1.114, allocations: 139.5 kB / 0.6479 GB, free: 90.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003053/1.115, allocations: 0.5768 MB / 0.6485 GB, free: 90.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004439/1.119, allocations: 2.908 MB / 0.6513 GB, free: 89.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006493/1.125, allocations: 5.832 MB / 0.657 GB, free: 84.36 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006732/1.132, allocations: 4.22 MB / 0.6611 GB, free: 82.44 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001415/1.132, allocations: 26.88 kB / 0.6612 GB, free: 82.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.01842/1.151, allocations: 9.835 MB / 0.6708 GB, free: 76.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001407/1.151, allocations: 48.78 kB / 0.6708 GB, free: 76.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001802/1.151, allocations: 103.7 kB / 0.6709 GB, free: 76.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002627/1.154, allocations: 0.935 MB / 0.6718 GB, free: 76 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006273/1.16, allocations: 1.596 MB / 0.6734 GB, free: 74.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/1.17, allocations: 9.68 MB / 0.6828 GB, free: 64.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006375/1.177, allocations: 415.1 kB / 0.6832 GB, free: 64.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001382/1.178, allocations: 348 kB / 0.6836 GB, free: 64.01 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 451 * 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 (822): * Single equations (assignments): 817 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01002/1.188, allocations: 4.247 MB / 0.6877 GB, free: 59.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002184/1.191, allocations: 0.5132 MB / 0.6882 GB, free: 59.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/1.204, allocations: 6.573 MB / 0.6946 GB, free: 52.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/1.204, allocations: 40 kB / 0.6947 GB, free: 52.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.65e-05/1.204, allocations: 8 kB / 0.6947 GB, free: 52.56 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.376e-05/1.204, allocations: 19.92 kB / 0.6947 GB, free: 52.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03515/1.239, allocations: 15.86 MB / 0.7102 GB, free: 36.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.067e-05/1.239, allocations: 0 / 0.7102 GB, free: 36.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00366/1.243, allocations: 0.7726 MB / 0.7109 GB, free: 35.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002328/1.245, allocations: 0.7845 MB / 0.7117 GB, free: 35.08 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000895/1.246, allocations: 89.17 kB / 0.7118 GB, free: 34.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00919/1.255, allocations: 8.837 MB / 0.7204 GB, free: 25.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.255, allocations: 11.92 kB / 0.7204 GB, free: 25.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01788/1.273, allocations: 9.968 MB / 0.7302 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003616/1.277, allocations: 1.08 MB / 0.7312 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002087/1.279, allocations: 68 kB / 0.7313 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004077/1.283, allocations: 227.8 kB / 0.7315 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009002/1.284, allocations: 276 kB / 0.7318 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006458/1.284, allocations: 112 kB / 0.7319 GB, free: 13.83 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.008311/1.293, allocations: 3.283 MB / 0.7351 GB, free: 10.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.61e-07/1.293, allocations: 0 / 0.7351 GB, free: 10.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0128/1.306, allocations: 1.875 MB / 0.7369 GB, free: 8.688 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (378): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001465/1.307, allocations: 269.2 kB / 0.7372 GB, free: 8.422 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0149/1.322, allocations: 7.689 MB / 0.7447 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/1.322, allocations: 4 kB / 0.7447 GB, free: 0.6523 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007962/1.33, allocations: 3.59 MB / 0.7482 GB, free: 12.98 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008528/1.339, allocations: 1.156 MB / 0.7493 GB, free: 11.84 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2396/1.578, allocations: 23.87 MB / 0.7726 GB, free: 134.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01417/1.592, allocations: 7.518 MB / 0.7799 GB, free: 133.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00747/1.6, allocations: 2.145 MB / 0.782 GB, free: 133.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/1.602, allocations: 411.9 kB / 0.7824 GB, free: 133.7 MB / 478.1 MB Notification: Performance of SimCode: time 9.72e-07/1.602, allocations: 0 / 0.7824 GB, free: 133.7 MB / 478.1 MB Notification: Performance of Templates: time 0.1094/1.711, allocations: 70.66 MB / 0.8514 GB, free: 81.5 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches