Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 114.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.89 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2063, allocations: 50.54 MB / 410 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03972/0.2461, allocations: 41.81 MB / 451.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01946/0.2655, allocations: 11.22 MB / 463 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005688/0.2712, allocations: 315 kB / 463.3 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0184/0.2897, allocations: 8.852 MB / 472.2 MB, free: 3.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009244/0.2989, allocations: 3.651 MB / 475.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005168/0.3041, allocations: 2.449 MB / 478.3 MB, free: 13.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01276/0.3169, allocations: 13.42 MB / 491.7 MB, free: 15.56 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02886/0.3458, allocations: 25.63 MB / 0.5052 GB, free: 5.781 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007615/0.3534, allocations: 6.993 MB / 0.512 GB, free: 14.77 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008977/0.3624, allocations: 8.027 MB / 0.5199 GB, free: 6.715 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002208/0.3646, allocations: 1.996 MB / 0.5218 GB, free: 4.719 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003337/0.3679, allocations: 2.402 MB / 0.5242 GB, free: 2.316 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002958/0.3709, allocations: 4.041 MB / 0.5281 GB, free: 14.26 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006891/0.3778, allocations: 7.778 MB / 0.5357 GB, free: 6.453 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.196/0.5739, allocations: 26.48 MB / 0.5616 GB, free: 54.54 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.5739, allocations: 3.094 kB / 0.5616 GB, free: 54.54 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5739, allocations: 0 / 0.5616 GB, free: 54.54 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004677/0.5744, allocations: 0 / 0.5616 GB, free: 54.54 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03305/0.6075, allocations: 15.48 MB / 0.5767 GB, free: 47.82 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.6075, allocations: 10.25 kB / 0.5767 GB, free: 47.82 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03109/0.6386, allocations: 6.228 MB / 0.5828 GB, free: 45.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01164/0.6502, allocations: 8.276 MB / 0.5908 GB, free: 41.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004112/0.6507, allocations: 0.9341 MB / 0.5918 GB, free: 40.66 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001742/0.6524, allocations: 1.226 MB / 0.593 GB, free: 40.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02639/0.6788, allocations: 19.01 MB / 0.6115 GB, free: 22.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002348/0.6791, allocations: 23.47 kB / 0.6115 GB, free: 22.19 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001252/0.6803, allocations: 0.5092 MB / 0.612 GB, free: 21.69 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000438/0.6808, allocations: 0.6609 MB / 0.6127 GB, free: 21.03 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02293/0.7037, allocations: 17.04 MB / 0.6293 GB, free: 3.996 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1187/0.8225, allocations: 60.65 MB / 0.6886 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04645/0.869, allocations: 33.49 MB / 0.7213 GB, free: 1.367 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01019/0.8792, allocations: 3.814 MB / 0.725 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0262/0.9054, allocations: 9.072 MB / 0.7338 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.882e-05/0.9055, allocations: 73.41 kB / 0.7339 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=361): time 8.636e-06/0.9055, allocations: 4 kB / 0.7339 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of matching and sorting (n=403): time 0.06062/0.9662, allocations: 17.77 MB / 0.7513 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.37e-05/0.9663, allocations: 94.58 kB / 0.7514 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2207/1.187, allocations: 5.249 MB / 0.7565 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0006648/1.188, allocations: 93.12 kB / 0.7566 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002913/1.191, allocations: 5.625 MB / 0.7621 GB, free: 214.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001166/1.192, allocations: 1.403 MB / 0.7634 GB, free: 214 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00191/1.194, allocations: 1.354 MB / 0.7648 GB, free: 213.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.093e-05/1.194, allocations: 304.9 kB / 0.765 GB, free: 213.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003706/1.197, allocations: 2.974 MB / 0.7679 GB, free: 212.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004517/1.202, allocations: 6.01 MB / 0.7738 GB, free: 207.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008501/1.21, allocations: 9.665 MB / 0.7833 GB, free: 200.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.624e-05/1.211, allocations: 34.91 kB / 0.7833 GB, free: 200.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01314/1.224, allocations: 10.08 MB / 0.7931 GB, free: 196 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.141e-05/1.224, allocations: 51.52 kB / 0.7932 GB, free: 196 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.7e-05/1.224, allocations: 110.5 kB / 0.7933 GB, free: 196 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002255/1.226, allocations: 0.9414 MB / 0.7942 GB, free: 195.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004939/1.231, allocations: 1.625 MB / 0.7958 GB, free: 194.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009794/1.241, allocations: 10.2 MB / 0.8058 GB, free: 185 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005231/1.246, allocations: 411.9 kB / 0.8062 GB, free: 184.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004965/1.247, allocations: 367.3 kB / 0.8065 GB, free: 184.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005452/1.252, allocations: 4.303 MB / 0.8107 GB, free: 180.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008924/1.253, allocations: 0.5437 MB / 0.8112 GB, free: 180 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009511/1.262, allocations: 6.667 MB / 0.8177 GB, free: 174.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.195e-05/1.263, allocations: 19.36 kB / 0.8178 GB, free: 174.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/1.263, allocations: 8 kB / 0.8178 GB, free: 174.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/1.264, allocations: 1.089 MB / 0.8188 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006617/1.265, allocations: 75.84 kB / 0.8189 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002254/1.267, allocations: 226 kB / 0.8191 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004695/1.268, allocations: 283.3 kB / 0.8194 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009418/1.277, allocations: 6.205 MB / 0.8255 GB, free: 167.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009101/1.286, allocations: 8.244 MB / 0.8335 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002507/1.289, allocations: 2.49 MB / 0.8359 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004093/1.293, allocations: 3.51 MB / 0.8394 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of Backend: time 2.51e-07/1.293, allocations: 0 / 0.8394 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008637/1.301, allocations: 6.008 MB / 0.8452 GB, free: 148.1 MB / 0.5762 GB Notification: Performance of SimCode: time 0.02722/1.329, allocations: 19.82 MB / 0.8646 GB, free: 128.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.1219/1.451, allocations: 91.23 MB / 0.9537 GB, free: 37.76 MB / 0.5762 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches