Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001057/0.001057, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.38/1.38, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001302/0.001302, allocations: 51.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08967/0.09098, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01668/0.1077, allocations: 15.84 MB / 344.6 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.1179, allocations: 5.404 MB / 350 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002359/0.1203, allocations: 91.62 kB / 350.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003636/0.124, allocations: 1.114 MB / 351.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005659/0.1297, allocations: 1.34 MB / 352.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.1321, allocations: 0.9471 MB / 353.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005184/0.1373, allocations: 3.983 MB / 357.4 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003651/0.141, allocations: 3.556 MB / 361 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002525/0.1435, allocations: 1.873 MB / 362.9 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002746/0.1463, allocations: 2.277 MB / 365.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006065/0.1469, allocations: 0.5156 MB / 365.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001414/0.1483, allocations: 0.738 MB / 366.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.1495, allocations: 1.289 MB / 367.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002303/0.1518, allocations: 2.248 MB / 369.9 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006194/0.158, allocations: 6.881 MB / 376.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.158, allocations: 4 kB / 376.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.158, allocations: 3.938 kB / 376.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000152/0.1582, allocations: 3.938 kB / 376.8 MB, free: 3.398 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.1993/0.3575, allocations: 4.645 MB / 381.5 MB, free: 49.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.3576, allocations: 9.625 kB / 381.5 MB, free: 49.28 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003537/0.3611, allocations: 0.6703 MB / 382.2 MB, free: 49.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005491/0.3666, allocations: 2.38 MB / 384.5 MB, free: 47.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002061/0.3669, allocations: 261 kB / 384.8 MB, free: 47.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006023/0.3675, allocations: 343.8 kB / 385.1 MB, free: 47.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00847/0.376, allocations: 4.456 MB / 389.6 MB, free: 45.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.833e-05/0.3761, allocations: 16.06 kB / 389.6 MB, free: 45.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002793/0.3764, allocations: 141.8 kB / 389.7 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001609/0.3765, allocations: 162.6 kB / 389.9 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00629/0.3828, allocations: 3.736 MB / 393.6 MB, free: 44.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01872/0.4016, allocations: 14.33 MB / 408 MB, free: 33.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003722/0.4053, allocations: 5.366 MB / 413.3 MB, free: 27.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.407, allocations: 1.277 MB / 414.6 MB, free: 25.94 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006002/0.413, allocations: 3.784 MB / 418.4 MB, free: 22.1 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.4131, allocations: 51.86 kB / 418.4 MB, free: 22.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 1.416e-05/0.4131, allocations: 0 / 418.4 MB, free: 22.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.007862/0.4209, allocations: 5.477 MB / 423.9 MB, free: 16.4 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.447e-05/0.421, allocations: 64.72 kB / 424 MB, free: 16.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002497/0.4235, allocations: 2.094 MB / 426.1 MB, free: 14.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.856e-05/0.4236, allocations: 49.7 kB / 426.1 MB, free: 14.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007003/0.4243, allocations: 1.66 MB / 427.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.4246, allocations: 453.2 kB / 428.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004159/0.425, allocations: 343.1 kB / 428.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.23e-05/0.425, allocations: 301.1 kB / 428.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009149/0.426, allocations: 0.7184 MB / 429.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.4271, allocations: 1.349 MB / 430.9 MB, free: 9.035 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/0.4293, allocations: 2.222 MB / 433.1 MB, free: 6.527 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.4294, allocations: 4 kB / 433.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003388/0.4328, allocations: 2.517 MB / 435.7 MB, free: 3.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.4328, allocations: 15.94 kB / 435.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.4328, allocations: 31.88 kB / 435.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000394/0.4332, allocations: 150.9 kB / 435.9 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.4347, allocations: 455.3 kB / 436.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.4368, allocations: 3.36 MB / 439.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/0.4385, allocations: 111.9 kB / 439.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.4386, allocations: 87.98 kB / 439.9 MB, free: 15.49 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002001/0.4406, allocations: 1.044 MB / 440.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003904/0.441, allocations: 221.3 kB / 441.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003628/0.4446, allocations: 2.173 MB / 443.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.4447, allocations: 12 kB / 443.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.4447, allocations: 4 kB / 443.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.4447, allocations: 7.969 kB / 443.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008395/0.4531, allocations: 5.162 MB / 448.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.4531, allocations: 4 kB / 448.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009859/0.4541, allocations: 227.7 kB / 448.7 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006744/0.4548, allocations: 275.3 kB / 449 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.09e-05/0.4549, allocations: 31.98 kB / 449 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006727/0.4617, allocations: 7.794 MB / 456.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.4617, allocations: 3.938 kB / 456.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004758/0.4665, allocations: 3.185 MB / 460 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.4676, allocations: 446.4 kB / 460.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002638/0.4679, allocations: 32 kB / 460.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000948/0.4688, allocations: 71.86 kB / 460.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.469, allocations: 96.75 kB / 460.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.732e-05/0.4691, allocations: 39.98 kB / 460.7 MB, free: 9.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002129/0.4713, allocations: 1.435 MB / 462.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4713, allocations: 0 / 462.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001868/0.4731, allocations: 0.5508 MB / 462.6 MB, free: 7.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003289/0.4735, allocations: 159.8 kB / 462.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003043/0.4765, allocations: 2.1 MB / 464.9 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4765, allocations: 0 / 464.9 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001899/0.4785, allocations: 1.379 MB / 466.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/0.4808, allocations: 0.5557 MB / 466.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009797/0.4906, allocations: 6.048 MB / 472.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002087/0.4927, allocations: 2.421 MB / 475.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001586/0.4943, allocations: 0.4946 MB / 475.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004295/0.4948, allocations: 151.4 kB / 475.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of SimCode: time 4.949e-06/0.4948, allocations: 0 / 475.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of Templates: time 0.04593/0.5407, allocations: 26.48 MB / 0.4906 GB, free: 15.86 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches