Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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.001144/0.001144, allocations: 105.5 kB / 18.39 MB, free: 4.68 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.001229/0.001229, allocations: 187.1 kB / 19.33 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 47.92 kB / 329.2 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.08948, allocations: 46.62 MB / 375.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2176/0.3071, allocations: 40.01 MB / 415.9 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02643/0.3336, allocations: 10.55 MB / 426.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01044/0.3441, allocations: 261.8 kB / 426.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02019/0.3644, allocations: 8.549 MB / 435.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0141/0.3785, allocations: 3.633 MB / 438.9 MB, free: 416 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008127/0.3866, allocations: 2.391 MB / 441.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01945/0.4061, allocations: 13.43 MB / 454.7 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04257/0.4487, allocations: 25.35 MB / 480 MB, free: 7.031 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01183/0.4606, allocations: 7.071 MB / 487.1 MB, free: 15.94 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01266/0.4733, allocations: 8.058 MB / 495.2 MB, free: 7.855 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006286/0.4796, allocations: 1.988 MB / 497.2 MB, free: 5.867 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008272/0.4879, allocations: 2.375 MB / 499.5 MB, free: 3.492 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006511/0.4945, allocations: 4.15 MB / 0.4919 GB, free: 15.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01497/0.5095, allocations: 7.832 MB / 0.4995 GB, free: 7.469 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03251/0.5421, allocations: 26.42 MB / 0.5253 GB, free: 12.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.5421, allocations: 3.938 kB / 0.5253 GB, free: 12.97 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5421, allocations: 0 / 0.5253 GB, free: 12.97 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008326/0.543, allocations: 0 / 0.5253 GB, free: 12.97 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04919/0.5922, allocations: 15.6 MB / 0.5406 GB, free: 13.26 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.5922, allocations: 8.031 kB / 0.5406 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05051/0.6428, allocations: 9.114 MB / 0.5495 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.381/1.024, allocations: 7.507 MB / 0.5568 GB, free: 133.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001204/1.025, allocations: 0.9433 MB / 0.5577 GB, free: 133.2 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006792/1.032, allocations: 1.238 MB / 0.5589 GB, free: 132.8 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05946/1.091, allocations: 20.15 MB / 0.5786 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006172/1.092, allocations: 21.12 kB / 0.5786 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004468/1.097, allocations: 0.5116 MB / 0.5791 GB, free: 124.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008228/1.097, allocations: 0.735 MB / 0.5798 GB, free: 124.4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03915/1.137, allocations: 18.98 MB / 0.5984 GB, free: 112.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09851/1.235, allocations: 62.65 MB / 0.6596 GB, free: 48.99 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03217/1.267, allocations: 56.98 MB / 0.7152 GB, free: 1.137 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006884/1.274, allocations: 4.094 MB / 0.7192 GB, free: 13.02 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02109/1.295, allocations: 11.33 MB / 0.7303 GB, free: 1.676 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.392e-05/1.296, allocations: 73.31 kB / 0.7303 GB, free: 1.594 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 5.991e-06/1.296, allocations: 0 / 0.7303 GB, free: 1.594 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2381/1.534, allocations: 18.13 MB / 0.7481 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/1.534, allocations: 93.78 kB / 0.7481 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009363/1.543, allocations: 5.463 MB / 0.7535 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000683/1.544, allocations: 88.42 kB / 0.7536 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00309/1.547, allocations: 5.883 MB / 0.7593 GB, free: 161.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001515/1.548, allocations: 1.372 MB / 0.7606 GB, free: 160.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002502/1.551, allocations: 1.51 MB / 0.7621 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.891e-05/1.551, allocations: 305.8 kB / 0.7624 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005403/1.556, allocations: 3.082 MB / 0.7654 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00717/1.564, allocations: 6.758 MB / 0.772 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01254/1.576, allocations: 10.59 MB / 0.7824 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001918/1.576, allocations: 35.31 kB / 0.7824 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.0189/1.595, allocations: 10.8 MB / 0.7929 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/1.595, allocations: 58.22 kB / 0.793 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002083/1.596, allocations: 125.2 kB / 0.7931 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002376/1.598, allocations: 0.9752 MB / 0.7941 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006739/1.605, allocations: 1.812 MB / 0.7958 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.615, allocations: 10.25 MB / 0.8058 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006174/1.621, allocations: 445.8 kB / 0.8063 GB, free: 132.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001327/1.623, allocations: 415.7 kB / 0.8067 GB, free: 132 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007249/1.63, allocations: 4.459 MB / 0.811 GB, free: 129.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001304/1.631, allocations: 0.5449 MB / 0.8115 GB, free: 129.5 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00971/1.641, allocations: 6.518 MB / 0.8179 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.51e-05/1.641, allocations: 40 kB / 0.818 GB, free: 125.9 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.587e-05/1.641, allocations: 8 kB / 0.818 GB, free: 125.9 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.074e-05/1.641, allocations: 29.59 kB / 0.818 GB, free: 125.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02557/1.667, allocations: 15.95 MB / 0.8336 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/1.667, allocations: 4 kB / 0.8336 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003111/1.67, allocations: 0.7558 MB / 0.8343 GB, free: 111.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/1.672, allocations: 0.7847 MB / 0.8351 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004786/1.672, allocations: 95.91 kB / 0.8352 GB, free: 110.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008416/1.681, allocations: 9.337 MB / 0.8443 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.681, allocations: 5.156 kB / 0.8443 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.694, allocations: 9.53 MB / 0.8536 GB, free: 90.85 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002991/1.697, allocations: 1.076 MB / 0.8546 GB, free: 89.75 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001189/1.698, allocations: 75.91 kB / 0.8547 GB, free: 89.68 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002859/1.701, allocations: 215.8 kB / 0.8549 GB, free: 89.46 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005834/1.702, allocations: 262.8 kB / 0.8552 GB, free: 89.21 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/1.702, allocations: 119.9 kB / 0.8553 GB, free: 89.09 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005518/1.707, allocations: 3.603 MB / 0.8588 GB, free: 85.51 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8.71e-07/1.707, allocations: 0 / 0.8588 GB, free: 85.51 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008409/1.716, allocations: 1.979 MB / 0.8607 GB, free: 83.54 MB / 0.5138 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000948/1.717, allocations: 267.6 kB / 0.861 GB, free: 83.28 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01138/1.728, allocations: 8.067 MB / 0.8689 GB, free: 75.14 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.978e-06/1.728, allocations: 0 / 0.8689 GB, free: 75.14 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005311/1.734, allocations: 3.545 MB / 0.8723 GB, free: 71.53 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007005/1.741, allocations: 1.313 MB / 0.8736 GB, free: 70.23 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03216/1.773, allocations: 20.45 MB / 0.8936 GB, free: 49.75 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007233/1.78, allocations: 7.372 MB / 0.9008 GB, free: 42.33 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/1.782, allocations: 499.3 kB / 0.9013 GB, free: 41.84 MB / 0.5138 GB Notification: Performance of SimCode: time 7.82e-07/1.782, allocations: 0 / 0.9013 GB, free: 41.84 MB / 0.5138 GB Notification: Performance of Templates: time 1.105/2.887, allocations: 479.6 MB / 1.37 GB, free: 187.4 MB / 0.5607 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches