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.001278/0.001278, allocations: 110.9 kB / 17.74 MB, free: 5.309 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.001439/0.001439, allocations: 188.5 kB / 18.67 MB, free: 4.387 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.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 51.92 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2435, allocations: 49.43 MB / 401.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03894/0.2825, allocations: 39.44 MB / 440.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02272/0.3052, allocations: 10.43 MB / 451.3 MB, free: 6.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007766/0.3131, allocations: 306.9 kB / 451.6 MB, free: 6.477 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01928/0.3324, allocations: 8.506 MB / 460.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01159/0.344, allocations: 3.406 MB / 463.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00741/0.3514, allocations: 2.326 MB / 465.9 MB, free: 8.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01717/0.3686, allocations: 12.88 MB / 478.7 MB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04063/0.4092, allocations: 25.3 MB / 0.4922 GB, free: 1.812 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01119/0.4205, allocations: 6.787 MB / 0.4989 GB, free: 11.01 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01274/0.4333, allocations: 7.724 MB / 0.5064 GB, free: 3.258 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005689/0.439, allocations: 1.953 MB / 0.5083 GB, free: 1.305 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0101/0.4491, allocations: 2.339 MB / 0.5106 GB, free: 14.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006724/0.4559, allocations: 3.959 MB / 0.5145 GB, free: 11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01408/0.47, allocations: 7.552 MB / 0.5218 GB, free: 3.414 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4922/0.9622, allocations: 25.86 MB / 0.5471 GB, free: 56.16 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/0.9622, allocations: 0 / 0.5471 GB, free: 56.16 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.9623, allocations: 0 / 0.5471 GB, free: 56.16 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009305/0.9632, allocations: 0 / 0.5471 GB, free: 56.16 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05135/1.015, allocations: 15 MB / 0.5617 GB, free: 52.23 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/1.015, allocations: 10.44 kB / 0.5617 GB, free: 52.23 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03389/1.049, allocations: 6.15 MB / 0.5677 GB, free: 50.94 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0181/1.067, allocations: 8.048 MB / 0.5756 GB, free: 48.63 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008738/1.068, allocations: 0.9028 MB / 0.5765 GB, free: 48.6 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005994/1.074, allocations: 1.196 MB / 0.5777 GB, free: 48.46 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04968/1.123, allocations: 18.65 MB / 0.5959 GB, free: 32.91 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005398/1.124, allocations: 23.27 kB / 0.5959 GB, free: 32.89 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004775/1.129, allocations: 0.49 MB / 0.5964 GB, free: 32.41 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005031/1.129, allocations: 0.6421 MB / 0.597 GB, free: 31.77 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0348/1.164, allocations: 16.77 MB / 0.6134 GB, free: 14.99 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1091/1.273, allocations: 58.11 MB / 0.6701 GB, free: 4.523 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02803/1.301, allocations: 32.89 MB / 0.7022 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007026/1.308, allocations: 3.707 MB / 0.7059 GB, free: 12.04 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01997/1.328, allocations: 8.625 MB / 0.7143 GB, free: 3.465 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.845e-05/1.328, allocations: 73.31 kB / 0.7144 GB, free: 3.383 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 8.466e-06/1.329, allocations: 0 / 0.7144 GB, free: 3.383 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04335/1.372, allocations: 17.57 MB / 0.7315 GB, free: 1.719 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.742e-05/1.372, allocations: 94.41 kB / 0.7316 GB, free: 1.613 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/1.383, allocations: 5.013 MB / 0.7365 GB, free: 12.61 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008382/1.384, allocations: 93.7 kB / 0.7366 GB, free: 12.51 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004518/1.389, allocations: 5.448 MB / 0.7419 GB, free: 7.027 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002024/1.391, allocations: 1.349 MB / 0.7432 GB, free: 5.688 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004072/1.395, allocations: 1.314 MB / 0.7445 GB, free: 4.363 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001156/1.395, allocations: 305.1 kB / 0.7448 GB, free: 4.062 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005501/1.401, allocations: 2.906 MB / 0.7476 GB, free: 1.152 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2735/1.674, allocations: 5.875 MB / 0.7534 GB, free: 220.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009978/1.684, allocations: 9.438 MB / 0.7626 GB, free: 214.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001452/1.684, allocations: 31.62 kB / 0.7626 GB, free: 214.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01809/1.703, allocations: 9.841 MB / 0.7722 GB, free: 210.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002189/1.703, allocations: 50.23 kB / 0.7723 GB, free: 210.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003353/1.703, allocations: 99.97 kB / 0.7724 GB, free: 210.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/1.706, allocations: 0.9334 MB / 0.7733 GB, free: 210.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00602/1.712, allocations: 1.584 MB / 0.7748 GB, free: 210.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/1.723, allocations: 10.19 MB / 0.7848 GB, free: 203.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005962/1.729, allocations: 410.2 kB / 0.7852 GB, free: 203.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001404/1.73, allocations: 354.9 kB / 0.7855 GB, free: 203.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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.008445/1.739, allocations: 4.235 MB / 0.7897 GB, free: 201.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001727/1.741, allocations: 0.5162 MB / 0.7902 GB, free: 201.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01226/1.753, allocations: 6.479 MB / 0.7965 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.777e-05/1.753, allocations: 40 kB / 0.7965 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.843e-05/1.753, allocations: 11.94 kB / 0.7965 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.538e-05/1.753, allocations: 19.08 kB / 0.7966 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0312/1.784, allocations: 15.69 MB / 0.8119 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/1.784, allocations: 4 kB / 0.8119 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003101/1.787, allocations: 0.7452 MB / 0.8126 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/1.79, allocations: 0.7927 MB / 0.8134 GB, free: 182.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003961/1.79, allocations: 91.25 kB / 0.8135 GB, free: 182.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008543/1.798, allocations: 9.34 MB / 0.8226 GB, free: 172.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.799, allocations: 4 kB / 0.8226 GB, free: 172.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01248/1.811, allocations: 9.492 MB / 0.8319 GB, free: 163.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002657/1.814, allocations: 1.059 MB / 0.8329 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008877/1.815, allocations: 76 kB / 0.833 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002367/1.817, allocations: 219.7 kB / 0.8332 GB, free: 161.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005252/1.818, allocations: 266.7 kB / 0.8334 GB, free: 161.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/1.818, allocations: 112 kB / 0.8335 GB, free: 161.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005141/1.823, allocations: 3.35 MB / 0.8368 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.31e-07/1.823, allocations: 0 / 0.8368 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008209/1.831, allocations: 1.882 MB / 0.8387 GB, free: 156.4 MB / 0.5763 GB 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 (368): * Single equations (assignments): 363 * 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%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009226/1.832, allocations: 261 kB / 0.8389 GB, free: 156.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01056/1.843, allocations: 7.672 MB / 0.8464 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/1.843, allocations: 4 kB / 0.8464 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005335/1.848, allocations: 3.562 MB / 0.8499 GB, free: 144.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006547/1.855, allocations: 1.287 MB / 0.8511 GB, free: 143.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03288/1.888, allocations: 19.38 MB / 0.8701 GB, free: 124 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008576/1.896, allocations: 7.101 MB / 0.877 GB, free: 116.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002016/1.898, allocations: 459.3 kB / 0.8774 GB, free: 116.5 MB / 0.5763 GB Notification: Performance of SimCode: time 9.72e-07/1.898, allocations: 0 / 0.8774 GB, free: 116.5 MB / 0.5763 GB Notification: Performance of Templates: time 0.9702/2.868, allocations: 460.6 MB / 1.327 GB, free: 74.68 MB / 0.5763 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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