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.001083/0.001083, allocations: 113.2 kB / 17.73 MB, free: 5.297 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.001118/0.001118, allocations: 188.2 kB / 18.67 MB, free: 4.363 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.486/1.486, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001441/0.001441, allocations: 43.94 kB / 328.5 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1144, allocations: 46.63 MB / 375.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2459/0.3603, allocations: 15.83 MB / 391 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01409/0.3745, allocations: 5.389 MB / 396.4 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004845/0.3794, allocations: 92.66 kB / 396.5 MB, free: 460 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005766/0.3852, allocations: 1.12 MB / 397.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008477/0.3937, allocations: 1.346 MB / 399 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005631/0.3994, allocations: 0.9664 MB / 399.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01008/0.4095, allocations: 3.97 MB / 403.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01008/0.4196, allocations: 3.553 MB / 407.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005308/0.425, allocations: 1.878 MB / 409.3 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005698/0.4307, allocations: 2.265 MB / 411.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002301/0.4331, allocations: 0.5198 MB / 412.1 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004747/0.4378, allocations: 0.7442 MB / 412.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00332/0.4412, allocations: 1.279 MB / 414.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007249/0.4485, allocations: 2.249 MB / 416.4 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0135/0.462, allocations: 6.917 MB / 423.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4621, allocations: 0 / 423.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4621, allocations: 0 / 423.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003486/0.4624, allocations: 0 / 423.3 MB, free: 15.57 MB / 350.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.01981/0.4823, allocations: 4.75 MB / 428 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.825e-05/0.4824, allocations: 23.95 kB / 428.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004616/0.487, allocations: 0.6854 MB / 428.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007174/0.4942, allocations: 2.398 MB / 431.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003473/0.4946, allocations: 259.3 kB / 431.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001631/0.4962, allocations: 348.3 kB / 431.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.5109, allocations: 4.464 MB / 436.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001555/0.5111, allocations: 7.938 kB / 436.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009108/0.5121, allocations: 140 kB / 436.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002057/0.5123, allocations: 162.8 kB / 436.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009871/0.5222, allocations: 3.735 MB / 440.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03582/0.558, allocations: 14.36 MB / 454.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007692/0.5658, allocations: 5.357 MB / 460 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002982/0.5688, allocations: 1.267 MB / 461.2 MB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009261/0.5782, allocations: 3.792 MB / 465 MB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.042e-05/0.5783, allocations: 51.81 kB / 465.1 MB, free: 4.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.777e-06/0.5783, allocations: 0 / 465.1 MB, free: 4.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.0126/0.5909, allocations: 5.516 MB / 470.6 MB, free: 14.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.591, allocations: 68.66 kB / 470.7 MB, free: 14.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005472/0.5965, allocations: 2.106 MB / 472.8 MB, free: 12.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002858/0.5968, allocations: 45.7 kB / 472.8 MB, free: 12.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001719/0.5985, allocations: 1.701 MB / 474.5 MB, free: 10.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007398/0.5993, allocations: 487.9 kB / 475 MB, free: 10.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007527/0.6, allocations: 335.4 kB / 475.3 MB, free: 9.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.6002, allocations: 301.1 kB / 475.6 MB, free: 9.598 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.6016, allocations: 0.7183 MB / 476.3 MB, free: 8.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.6034, allocations: 1.357 MB / 477.7 MB, free: 7.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00335/0.6068, allocations: 2.231 MB / 479.9 MB, free: 4.711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-05/0.6068, allocations: 8 kB / 479.9 MB, free: 4.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005129/0.6119, allocations: 2.526 MB / 482.4 MB, free: 2.141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/0.612, allocations: 16 kB / 482.5 MB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.32e-05/0.6121, allocations: 20 kB / 482.5 MB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004938/0.6126, allocations: 143 kB / 482.6 MB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.6143, allocations: 467.3 kB / 483.1 MB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003283/0.6176, allocations: 3.357 MB / 486.4 MB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.6197, allocations: 111.8 kB / 486.5 MB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00029/0.62, allocations: 87.98 kB / 486.6 MB, free: 13.67 MB / 414.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.002335/0.6224, allocations: 1.044 MB / 487.7 MB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006781/0.6231, allocations: 226.6 kB / 487.9 MB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004377/0.6275, allocations: 2.177 MB / 490.1 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/0.6275, allocations: 16 kB / 490.1 MB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/0.6275, allocations: 7.938 kB / 490.1 MB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.6275, allocations: 3.984 kB / 490.1 MB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.6391, allocations: 5.156 MB / 495.3 MB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.6391, allocations: 0 / 495.3 MB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.6401, allocations: 231.6 kB / 495.5 MB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007327/0.6409, allocations: 271.5 kB / 495.7 MB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.641, allocations: 31.98 kB / 495.8 MB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007464/0.6485, allocations: 7.806 MB / 0.4918 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.6485, allocations: 4 kB / 0.4918 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00527/0.6538, allocations: 3.198 MB / 0.4949 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/0.6551, allocations: 467.8 kB / 0.4954 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006189/0.6557, allocations: 24 kB / 0.4954 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/0.657, allocations: 79.92 kB / 0.4955 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.6573, allocations: 96.75 kB / 0.4955 GB, free: 7.969 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-05/0.6574, allocations: 35.98 kB / 0.4956 GB, free: 7.934 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003094/0.6605, allocations: 1.427 MB / 0.497 GB, free: 6.488 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6605, allocations: 0 / 0.497 GB, free: 6.488 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002933/0.6634, allocations: 0.5586 MB / 0.4975 GB, free: 5.93 MB / 430.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.0004059/0.6638, allocations: 162.9 kB / 0.4977 GB, free: 5.762 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003403/0.6672, allocations: 2.102 MB / 0.4997 GB, free: 3.613 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.6673, allocations: 4.125 kB / 0.4997 GB, free: 3.609 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/0.6694, allocations: 1.383 MB / 0.5011 GB, free: 2.176 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002973/0.6723, allocations: 0.5563 MB / 0.5016 GB, free: 1.617 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01282/0.6852, allocations: 6.152 MB / 0.5076 GB, free: 11.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003609/0.6888, allocations: 2.409 MB / 0.51 GB, free: 8.957 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001889/0.6907, allocations: 0.4907 MB / 0.5105 GB, free: 8.465 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005786/0.6913, allocations: 155.4 kB / 0.5106 GB, free: 8.312 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6913, allocations: 0 / 0.5106 GB, free: 8.312 MB / 446.1 MB Notification: Performance of Templates: time 0.05211/0.7435, allocations: 27.13 MB / 0.5371 GB, free: 13.13 MB / 478.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 -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/jenkins/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/jenkins/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