Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 103.9 kB / 18.39 MB, free: 4.66 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.001014/0.001014, allocations: 186.4 kB / 19.33 MB, free: 3.738 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.378/1.378, allocations: 205.1 MB / 225.2 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.001248/0.001248, allocations: 44.27 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08056/0.08182, allocations: 46.62 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.1937/0.2755, allocations: 11.61 MB / 387.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008144/0.2837, allocations: 3.956 MB / 391.4 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003252/0.287, allocations: 63.59 kB / 391.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003002/0.2901, allocations: 0.8682 MB / 392.3 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004456/0.2946, allocations: 0.9522 MB / 393.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.2963, allocations: 0.5178 MB / 393.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004511/0.3008, allocations: 3.297 MB / 397.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003429/0.3042, allocations: 2.994 MB / 400.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.3069, allocations: 1.526 MB / 401.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004646/0.3115, allocations: 1.974 MB / 403.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001744/0.3133, allocations: 423.1 kB / 404 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002692/0.316, allocations: 0.5197 MB / 404.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002584/0.3186, allocations: 1.222 MB / 405.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005817/0.3245, allocations: 1.877 MB / 407.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01106/0.3356, allocations: 5.518 MB / 413.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.3356, allocations: 7.938 kB / 413.1 MB, free: 8.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3356, allocations: 0 / 413.1 MB, free: 8.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001969/0.3359, allocations: 0 / 413.1 MB, free: 8.344 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01553/0.3514, allocations: 3.801 MB / 416.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.3515, allocations: 17.81 kB / 417 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001855/0.3533, allocations: 398.1 kB / 417.3 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005746/0.3591, allocations: 1.937 MB / 419.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.3594, allocations: 218.2 kB / 419.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007122/0.3601, allocations: 283.8 kB / 419.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009673/0.3698, allocations: 3.698 MB / 423.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/0.3699, allocations: 15.84 kB / 423.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004054/0.3704, allocations: 116 kB / 423.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002091/0.3706, allocations: 141.5 kB / 423.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008642/0.3792, allocations: 3.106 MB / 426.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03115/0.4104, allocations: 11.5 MB / 438.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003917/0.4144, allocations: 1.909 MB / 440.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002855/0.4173, allocations: 1.068 MB / 441.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004909/0.4178, allocations: 211.2 kB / 441.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.104e-05/0.4179, allocations: 43.56 kB / 441.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 5.68e-06/0.4179, allocations: 0 / 441.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02147/0.4394, allocations: 6.531 MB / 448.1 MB, free: 6.445 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.394e-05/0.4395, allocations: 68.66 kB / 448.2 MB, free: 6.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005886/0.4454, allocations: 1.991 MB / 450.2 MB, free: 4.336 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003489/0.4458, allocations: 49.7 kB / 450.2 MB, free: 4.281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001716/0.4475, allocations: 1.412 MB / 451.6 MB, free: 2.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008248/0.4484, allocations: 485 kB / 452.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001102/0.4495, allocations: 331.2 kB / 452.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4497, allocations: 301.1 kB / 452.7 MB, free: 1.742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/0.4519, allocations: 0.8238 MB / 453.5 MB, free: 0.918 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002731/0.4546, allocations: 1.383 MB / 454.9 MB, free: 15.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005227/0.4599, allocations: 2.364 MB / 457.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.979e-05/0.4599, allocations: 8 kB / 457.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007479/0.4674, allocations: 2.85 MB / 460.1 MB, free: 9.777 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.4675, allocations: 12.44 kB / 460.2 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.158e-05/0.4676, allocations: 16 kB / 460.2 MB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/0.4689, allocations: 391.1 kB / 460.6 MB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002338/0.4713, allocations: 431.3 kB / 461 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009819/0.4811, allocations: 6.701 MB / 467.7 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003009/0.4842, allocations: 135.8 kB / 467.8 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004377/0.4846, allocations: 76 kB / 467.9 MB, free: 1.609 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003073/0.4877, allocations: 0.9077 MB / 468.8 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/0.4888, allocations: 213.3 kB / 469 MB, free: 492 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007089/0.4959, allocations: 2.425 MB / 471.4 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.159e-05/0.496, allocations: 12 kB / 471.4 MB, free: 14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-05/0.496, allocations: 11.88 kB / 471.4 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.516e-05/0.496, allocations: 7.969 kB / 471.5 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01622/0.5123, allocations: 5.508 MB / 477 MB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/0.5124, allocations: 4 kB / 477 MB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001735/0.5141, allocations: 256.1 kB / 477.2 MB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.5157, allocations: 408.8 kB / 477.6 MB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001766/0.5159, allocations: 39.98 kB / 477.7 MB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01153/0.5274, allocations: 8.251 MB / 485.9 MB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.226e-05/0.5275, allocations: 7.938 kB / 485.9 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009417/0.5369, allocations: 3.603 MB / 489.5 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/0.5388, allocations: 458.6 kB / 490 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009828/0.5398, allocations: 35.98 kB / 490 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002216/0.5421, allocations: 95.83 kB / 490.1 MB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003603/0.5425, allocations: 105 kB / 490.2 MB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001831/0.5427, allocations: 47.97 kB / 490.2 MB, free: 10.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00396/0.5466, allocations: 1.361 MB / 491.6 MB, free: 8.957 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5467, allocations: 0 / 491.6 MB, free: 8.957 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00358/0.5503, allocations: 0.5352 MB / 492.1 MB, free: 8.422 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (129): * Single equations (assignments): 125 * 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 {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.000625/0.5509, allocations: 198.1 kB / 492.3 MB, free: 8.223 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005545/0.5565, allocations: 2.5 MB / 494.8 MB, free: 5.664 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.5565, allocations: 64 / 494.8 MB, free: 5.664 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003154/0.5597, allocations: 1.498 MB / 496.3 MB, free: 4.117 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005136/0.5648, allocations: 0.5371 MB / 496.9 MB, free: 3.578 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.5782, allocations: 5.718 MB / 0.4908 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003028/0.5812, allocations: 2.167 MB / 0.4929 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00097/0.5822, allocations: 163.4 kB / 0.4931 GB, free: 11.41 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5822, allocations: 0 / 0.4931 GB, free: 11.41 MB / 430.1 MB Notification: Performance of Templates: time 0.3029/0.8851, allocations: 91.58 MB / 0.5825 GB, free: 142.3 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches