Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.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_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009232/0.0009232, allocations: 201 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000848/0.0008483, allocations: 99.03 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002484/0.0002487, allocations: 11.98 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.175, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02562/0.2006, allocations: 36.51 MB / 444 MB, free: 7.215 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01853/0.2192, allocations: 10.36 MB / 454.4 MB, free: 12.83 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00644/0.2257, allocations: 291 kB / 454.7 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005447/0.2312, allocations: 1.771 MB / 456.5 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008821/0.24, allocations: 2.935 MB / 459.4 MB, free: 7.816 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004836/0.2449, allocations: 1.581 MB / 461 MB, free: 6.246 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01506/0.2599, allocations: 14.27 MB / 475.2 MB, free: 7.934 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03272/0.2927, allocations: 20.09 MB / 495.3 MB, free: 3.754 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007125/0.2998, allocations: 4.94 MB / 0.4885 GB, free: 14.8 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00826/0.3081, allocations: 5.829 MB / 0.4942 GB, free: 8.945 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002718/0.3108, allocations: 0.7812 MB / 0.495 GB, free: 8.164 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004807/0.3157, allocations: 1.16 MB / 0.4961 GB, free: 7.004 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003286/0.319, allocations: 2.511 MB / 0.4986 GB, free: 4.484 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004134/0.3231, allocations: 2.593 MB / 0.5011 GB, free: 1.879 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3264/0.6495, allocations: 22.18 MB / 0.5228 GB, free: 22.88 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.6496, allocations: 0.5 kB / 0.5228 GB, free: 22.88 MB / 378.8 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6496, allocations: 0 / 0.5228 GB, free: 22.88 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0007404/0.6503, allocations: 0 / 0.5228 GB, free: 22.88 MB / 378.8 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.03143/0.6818, allocations: 12.93 MB / 0.5354 GB, free: 16.41 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.6818, allocations: 7.344 kB / 0.5354 GB, free: 16.41 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03054/0.7124, allocations: 6.229 MB / 0.5415 GB, free: 13.95 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01431/0.7267, allocations: 7.895 MB / 0.5492 GB, free: 11.82 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007047/0.7275, allocations: 0.9387 MB / 0.5501 GB, free: 11.79 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004035/0.7315, allocations: 1.234 MB / 0.5513 GB, free: 11.77 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03975/0.7713, allocations: 18.93 MB / 0.5698 GB, free: 1.699 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00039/0.7717, allocations: 23.42 kB / 0.5698 GB, free: 1.68 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002541/0.7742, allocations: 0.5051 MB / 0.5703 GB, free: 1.578 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004803/0.7747, allocations: 0.6516 MB / 0.571 GB, free: 0.9609 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03309/0.8078, allocations: 16.93 MB / 0.5875 GB, free: 3.91 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0971/0.905, allocations: 61.52 MB / 0.6476 GB, free: 5.77 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02283/0.9278, allocations: 33.44 MB / 0.6802 GB, free: 456 kB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1824/1.11, allocations: 3.828 MB / 0.684 GB, free: 169.6 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01427/1.125, allocations: 9.123 MB / 0.6929 GB, free: 166.6 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/1.125, allocations: 69.12 kB / 0.6929 GB, free: 166.5 MB / 490.8 MB Notification: Performance of pre-optimization done (n=361): time 5.771e-06/1.125, allocations: 3.875 kB / 0.693 GB, free: 166.5 MB / 490.8 MB Notification: Performance of matching and sorting (n=403): time 0.03426/1.159, allocations: 18.61 MB / 0.7111 GB, free: 158.9 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/1.159, allocations: 93.14 kB / 0.7112 GB, free: 158.8 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007095/1.166, allocations: 5.218 MB / 0.7163 GB, free: 156.1 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005023/1.167, allocations: 89.7 kB / 0.7164 GB, free: 156 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002656/1.169, allocations: 5.619 MB / 0.7219 GB, free: 151.1 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00109/1.17, allocations: 1.398 MB / 0.7233 GB, free: 149.8 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003072/1.171, allocations: 140 kB / 0.7234 GB, free: 149.7 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0002633/1.171, allocations: 0.5824 MB / 0.724 GB, free: 149.2 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003851/1.175, allocations: 2.946 MB / 0.7268 GB, free: 146.7 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00495/1.18, allocations: 5.997 MB / 0.7327 GB, free: 139.8 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005084/1.185, allocations: 4.273 MB / 0.7369 GB, free: 136 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.194e-05/1.185, allocations: 32 kB / 0.7369 GB, free: 135.9 MB / 490.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01361/1.199, allocations: 10.03 MB / 0.7467 GB, free: 126.2 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.863e-05/1.199, allocations: 48 kB / 0.7467 GB, free: 126.1 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/1.199, allocations: 102.7 kB / 0.7468 GB, free: 126 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/1.201, allocations: 0.9546 MB / 0.7478 GB, free: 125.1 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005199/1.206, allocations: 1.634 MB / 0.7494 GB, free: 123.4 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009153/1.215, allocations: 9.496 MB / 0.7586 GB, free: 113.5 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005566/1.221, allocations: 415.2 kB / 0.759 GB, free: 113.1 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008175/1.222, allocations: 365.2 kB / 0.7594 GB, free: 112.8 MB / 490.8 MB 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 (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,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007559/1.229, allocations: 4.301 MB / 0.7636 GB, free: 108.5 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/1.231, allocations: 0.5402 MB / 0.7641 GB, free: 107.9 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009339/1.24, allocations: 6.671 MB / 0.7706 GB, free: 101.2 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.228e-05/1.24, allocations: 40 kB / 0.7707 GB, free: 101.2 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/1.24, allocations: 8 kB / 0.7707 GB, free: 101.1 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.152e-05/1.24, allocations: 23.92 kB / 0.7707 GB, free: 101.1 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02314/1.263, allocations: 16.23 MB / 0.7865 GB, free: 84.86 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/1.263, allocations: 4 kB / 0.7865 GB, free: 84.86 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003031/1.266, allocations: 0.7727 MB / 0.7873 GB, free: 84.08 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/1.268, allocations: 0.7885 MB / 0.7881 GB, free: 83.28 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002354/1.269, allocations: 91.97 kB / 0.7882 GB, free: 83.19 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007889/1.276, allocations: 8.651 MB / 0.7966 GB, free: 74.14 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.277, allocations: 7.938 kB / 0.7966 GB, free: 74.13 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01303/1.29, allocations: 9.753 MB / 0.8061 GB, free: 64.26 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00261/1.292, allocations: 1.113 MB / 0.8072 GB, free: 63.12 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006805/1.293, allocations: 87.98 kB / 0.8073 GB, free: 63.04 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00225/1.295, allocations: 231.7 kB / 0.8075 GB, free: 62.81 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004457/1.296, allocations: 278.8 kB / 0.8078 GB, free: 62.54 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002289/1.296, allocations: 112 kB / 0.8079 GB, free: 62.43 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.004669/1.3, allocations: 3.466 MB / 0.8113 GB, free: 58.98 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.31e-07/1.301, allocations: 0 / 0.8113 GB, free: 58.98 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.006038/1.307, allocations: 1.94 MB / 0.8132 GB, free: 57.05 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.0005828/1.307, allocations: 295.8 kB / 0.8135 GB, free: 56.77 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01006/1.317, allocations: 7.778 MB / 0.8211 GB, free: 48.91 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/1.317, allocations: 0 / 0.8211 GB, free: 48.91 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004392/1.322, allocations: 3.625 MB / 0.8246 GB, free: 45.21 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006627/1.328, allocations: 1.335 MB / 0.8259 GB, free: 43.91 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03324/1.362, allocations: 24.28 MB / 0.8496 GB, free: 19.54 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2188/1.58, allocations: 7.201 MB / 0.8566 GB, free: 155 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/1.583, allocations: 483.9 kB / 0.8571 GB, free: 155 MB / 490.8 MB Notification: Performance of SimCode: time 1.653e-06/1.583, allocations: 0 / 0.8571 GB, free: 155 MB / 490.8 MB Notification: Performance of Templates: time 0.8951/2.478, allocations: 472.5 MB / 1.319 GB, free: 83.64 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches