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.001368/0.001368, allocations: 113.3 kB / 18.4 MB, free: 4.566 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.001657/0.001657, allocations: 189.2 kB / 19.33 MB, free: 3.648 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.417/1.417, 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.00116/0.00116, allocations: 52.2 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2545/0.3559, allocations: 15.84 MB / 391.7 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.369, allocations: 5.395 MB / 397.1 MB, free: 244 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004951/0.374, allocations: 91.53 kB / 397.2 MB, free: 220 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004687/0.3788, allocations: 1.116 MB / 398.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007394/0.3862, allocations: 1.352 MB / 399.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003905/0.3901, allocations: 0.9581 MB / 400.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008818/0.399, allocations: 3.976 MB / 404.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005761/0.4048, allocations: 3.552 MB / 408.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004204/0.409, allocations: 1.89 MB / 410 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005501/0.4146, allocations: 2.266 MB / 412.3 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001903/0.4165, allocations: 0.5152 MB / 412.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002962/0.4195, allocations: 0.7407 MB / 413.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001632/0.4211, allocations: 1.291 MB / 414.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004386/0.4255, allocations: 2.248 MB / 417.1 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009317/0.4349, allocations: 6.886 MB / 424 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.4349, allocations: 0 / 424 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.729e-06/0.4349, allocations: 3.938 kB / 424 MB, free: 15.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002288/0.4352, allocations: 3.938 kB / 424 MB, free: 15.48 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.01375/0.4489, allocations: 4.658 MB / 428.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.449, allocations: 12.03 kB / 428.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003481/0.4525, allocations: 0.6675 MB / 429.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005374/0.4579, allocations: 2.381 MB / 431.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002239/0.4582, allocations: 259.3 kB / 431.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008429/0.459, allocations: 344.3 kB / 432.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009586/0.4686, allocations: 4.46 MB / 436.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.064e-05/0.4688, allocations: 8 kB / 436.7 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003606/0.4691, allocations: 143.9 kB / 436.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002103/0.4693, allocations: 166.8 kB / 437 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007385/0.4767, allocations: 3.735 MB / 440.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02444/0.5012, allocations: 14.32 MB / 455.1 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005569/0.5068, allocations: 5.358 MB / 460.5 MB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002016/0.5089, allocations: 1.266 MB / 461.7 MB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007083/0.516, allocations: 3.784 MB / 465.5 MB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.234e-05/0.5161, allocations: 47.81 kB / 465.5 MB, free: 4.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.547e-06/0.5161, allocations: 0 / 465.5 MB, free: 4.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01046/0.5266, allocations: 5.46 MB / 471 MB, free: 14.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.5267, allocations: 68.72 kB / 471.1 MB, free: 14.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.5302, allocations: 2.102 MB / 473.2 MB, free: 12.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002017/0.5304, allocations: 49.7 kB / 473.2 MB, free: 12.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.5317, allocations: 1.657 MB / 474.9 MB, free: 10.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004974/0.5322, allocations: 465.4 kB / 475.3 MB, free: 10.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005248/0.5328, allocations: 331.2 kB / 475.7 MB, free: 10.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.5329, allocations: 305.1 kB / 476 MB, free: 9.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.5341, allocations: 0.7184 MB / 476.7 MB, free: 9.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.5357, allocations: 1.353 MB / 478 MB, free: 7.422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002902/0.5386, allocations: 2.223 MB / 480.3 MB, free: 4.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/0.5386, allocations: 8 kB / 480.3 MB, free: 4.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004364/0.543, allocations: 2.513 MB / 482.8 MB, free: 2.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.269e-05/0.5431, allocations: 19.94 kB / 482.8 MB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.975e-05/0.5431, allocations: 24.5 kB / 482.8 MB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004507/0.5436, allocations: 146.4 kB / 483 MB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.5452, allocations: 463.3 kB / 483.4 MB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002812/0.548, allocations: 3.352 MB / 486.8 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002109/0.5502, allocations: 107.8 kB / 486.9 MB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001936/0.5504, allocations: 84 kB / 487 MB, free: 13.89 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.00241/0.5528, allocations: 1.052 MB / 488 MB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006753/0.5535, allocations: 213.4 kB / 488.2 MB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003921/0.5574, allocations: 2.181 MB / 490.4 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/0.5574, allocations: 16 kB / 490.4 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.5575, allocations: 4 kB / 490.4 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.462e-05/0.5575, allocations: 11.91 kB / 490.4 MB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/0.5669, allocations: 5.16 MB / 495.6 MB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.5669, allocations: 0 / 495.6 MB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.568, allocations: 227.7 kB / 495.8 MB, free: 4.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007455/0.5687, allocations: 279.5 kB / 496.1 MB, free: 4.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.821e-05/0.5688, allocations: 24 kB / 496.1 MB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006634/0.5755, allocations: 7.798 MB / 0.4921 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.5755, allocations: 4 kB / 0.4921 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005082/0.5806, allocations: 3.185 MB / 0.4952 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/0.5819, allocations: 450.4 kB / 0.4956 GB, free: 8.418 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003521/0.5823, allocations: 31.94 kB / 0.4957 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.5833, allocations: 75.91 kB / 0.4957 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.5835, allocations: 92.81 kB / 0.4958 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.681e-05/0.5836, allocations: 32 kB / 0.4959 GB, free: 8.188 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002276/0.5859, allocations: 1.435 MB / 0.4973 GB, free: 6.734 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.813e-06/0.5859, allocations: 4 kB / 0.4973 GB, free: 6.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002682/0.5886, allocations: 0.5585 MB / 0.4978 GB, free: 6.172 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.0004538/0.5891, allocations: 163.1 kB / 0.498 GB, free: 6.004 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003562/0.5927, allocations: 2.11 MB / 0.5 GB, free: 3.848 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.5927, allocations: 0 / 0.5 GB, free: 3.848 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002075/0.5948, allocations: 1.379 MB / 0.5014 GB, free: 2.418 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/0.5979, allocations: 0.5553 MB / 0.5019 GB, free: 1.859 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/0.6098, allocations: 6.072 MB / 0.5078 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00233/0.6122, allocations: 2.365 MB / 0.5102 GB, free: 9.328 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008862/0.6131, allocations: 167.4 kB / 0.5103 GB, free: 9.164 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6131, allocations: 0 / 0.5103 GB, free: 9.164 MB / 446.1 MB Notification: Performance of Templates: time 0.363/0.9762, allocations: 99.96 MB / 0.6079 GB, free: 113.2 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/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