Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001195/0.001201, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 204 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 63.89 kB / 359.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2595, allocations: 50.54 MB / 410 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03922/0.2988, allocations: 40.08 MB / 450.1 MB, free: 9.281 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02186/0.3207, allocations: 10.65 MB / 460.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007766/0.3285, allocations: 307 kB / 461 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01985/0.3484, allocations: 8.521 MB / 469.5 MB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01186/0.3603, allocations: 3.41 MB / 472.9 MB, free: 2.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007392/0.3677, allocations: 2.366 MB / 475.3 MB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01685/0.3846, allocations: 12.95 MB / 488.3 MB, free: 2.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04063/0.4253, allocations: 25.32 MB / 0.5015 GB, free: 9.496 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.4356, allocations: 6.833 MB / 0.5082 GB, free: 2.648 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01201/0.4477, allocations: 7.829 MB / 0.5159 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005014/0.4527, allocations: 1.949 MB / 0.5178 GB, free: 8.84 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006804/0.4596, allocations: 2.363 MB / 0.5201 GB, free: 6.48 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005905/0.4655, allocations: 3.959 MB / 0.5239 GB, free: 2.512 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01275/0.4783, allocations: 7.564 MB / 0.5313 GB, free: 10.91 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2444/0.7227, allocations: 25.89 MB / 0.5566 GB, free: 55.63 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.7227, allocations: 7.172 kB / 0.5566 GB, free: 55.63 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.7227, allocations: 0 / 0.5566 GB, free: 55.63 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007423/0.7235, allocations: 3.812 kB / 0.5566 GB, free: 55.63 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.04532/0.7688, allocations: 15.04 MB / 0.5713 GB, free: 49.11 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.7689, allocations: 8.344 kB / 0.5713 GB, free: 49.11 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.034/0.8029, allocations: 6.162 MB / 0.5773 GB, free: 46.7 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01591/0.8188, allocations: 8.061 MB / 0.5852 GB, free: 43.23 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007859/0.8197, allocations: 0.9012 MB / 0.5861 GB, free: 42.83 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005305/0.825, allocations: 1.194 MB / 0.5872 GB, free: 42.43 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04455/0.8696, allocations: 18.65 MB / 0.6055 GB, free: 25.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005324/0.8701, allocations: 23.64 kB / 0.6055 GB, free: 25.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003852/0.874, allocations: 0.493 MB / 0.606 GB, free: 25.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005084/0.8745, allocations: 0.6382 MB / 0.6066 GB, free: 24.56 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03186/0.9064, allocations: 16.77 MB / 0.623 GB, free: 7.785 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.105/1.011, allocations: 58.82 MB / 0.6804 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02763/1.039, allocations: 33.21 MB / 0.7128 GB, free: 7.363 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006346/1.046, allocations: 3.742 MB / 0.7165 GB, free: 3.609 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01768/1.063, allocations: 8.827 MB / 0.7251 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.453e-05/1.063, allocations: 73.31 kB / 0.7252 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=349): time 5.209e-06/1.063, allocations: 0 / 0.7252 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of matching and sorting (n=389): time 0.0393/1.103, allocations: 17.56 MB / 0.7423 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/1.103, allocations: 98.45 kB / 0.7424 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009041/1.112, allocations: 5.033 MB / 0.7473 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0007939/1.113, allocations: 85.7 kB / 0.7474 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.2171/1.33, allocations: 5.45 MB / 0.7527 GB, free: 218.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001504/1.331, allocations: 1.355 MB / 0.7541 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002555/1.334, allocations: 1.321 MB / 0.7554 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.531e-05/1.334, allocations: 301.1 kB / 0.7556 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004212/1.338, allocations: 2.908 MB / 0.7585 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005226/1.343, allocations: 5.877 MB / 0.7642 GB, free: 212.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009397/1.353, allocations: 9.44 MB / 0.7734 GB, free: 206 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/1.353, allocations: 26.88 kB / 0.7735 GB, free: 206 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01529/1.368, allocations: 9.855 MB / 0.7831 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.008e-05/1.368, allocations: 50.53 kB / 0.7831 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001233/1.369, allocations: 97.72 kB / 0.7832 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002151/1.371, allocations: 0.9397 MB / 0.7841 GB, free: 201.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005215/1.376, allocations: 1.583 MB / 0.7857 GB, free: 201.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009871/1.386, allocations: 10.18 MB / 0.7956 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005397/1.391, allocations: 412.9 kB / 0.796 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/1.392, allocations: 355.2 kB / 0.7964 GB, free: 192.2 MB / 0.5762 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.006162/1.398, allocations: 4.243 MB / 0.8005 GB, free: 188.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.4, allocations: 0.513 MB / 0.801 GB, free: 188 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009377/1.409, allocations: 6.482 MB / 0.8073 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/1.409, allocations: 43.83 kB / 0.8074 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/1.409, allocations: 8 kB / 0.8074 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.482e-05/1.409, allocations: 22.69 kB / 0.8074 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02298/1.432, allocations: 15.71 MB / 0.8228 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/1.432, allocations: 0 / 0.8228 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00304/1.435, allocations: 0.7532 MB / 0.8235 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/1.437, allocations: 0.7801 MB / 0.8242 GB, free: 167.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002962/1.437, allocations: 99.66 kB / 0.8243 GB, free: 167.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008382/1.446, allocations: 9.349 MB / 0.8335 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.446, allocations: 4 kB / 0.8335 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01273/1.459, allocations: 9.496 MB / 0.8427 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002324/1.461, allocations: 1.053 MB / 0.8438 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009912/1.462, allocations: 79.91 kB / 0.8439 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002594/1.465, allocations: 215.8 kB / 0.8441 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005235/1.465, allocations: 266.7 kB / 0.8443 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000232/1.465, allocations: 116 kB / 0.8444 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004571/1.47, allocations: 3.359 MB / 0.8477 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.41e-07/1.47, allocations: 0 / 0.8477 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006793/1.477, allocations: 1.886 MB / 0.8495 GB, free: 141.3 MB / 0.5762 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.0007703/1.478, allocations: 264.9 kB / 0.8498 GB, free: 141 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01003/1.488, allocations: 7.665 MB / 0.8573 GB, free: 133.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.488, allocations: 384 / 0.8573 GB, free: 133.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004881/1.492, allocations: 3.559 MB / 0.8608 GB, free: 129.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006235/1.499, allocations: 1.303 MB / 0.862 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03043/1.529, allocations: 19.42 MB / 0.881 GB, free: 108.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006572/1.536, allocations: 7.127 MB / 0.888 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001867/1.538, allocations: 459.3 kB / 0.8884 GB, free: 101.3 MB / 0.5762 GB Notification: Performance of SimCode: time 6.61e-07/1.538, allocations: 0 / 0.8884 GB, free: 101.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.8373/2.375, allocations: 462.2 MB / 1.34 GB, free: 58.75 MB / 0.5762 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches