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.001137/0.001137, 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.001153/0.001153, 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.38/1.38, 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.001357/0.001357, allocations: 55.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07959/0.08096, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.1758/0.2568, allocations: 11.6 MB / 387.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007665/0.2645, allocations: 3.949 MB / 391.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002297/0.2669, allocations: 69.34 kB / 391.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002666/0.2696, allocations: 0.8661 MB / 392.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004022/0.2736, allocations: 0.9494 MB / 393.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001851/0.2755, allocations: 0.5255 MB / 393.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004456/0.28, allocations: 3.293 MB / 397.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004211/0.2842, allocations: 2.981 MB / 400.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002658/0.2869, allocations: 1.54 MB / 401.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003825/0.2907, allocations: 1.974 MB / 403.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001268/0.292, allocations: 422.6 kB / 404 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002/0.294, allocations: 0.5198 MB / 404.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00192/0.2959, allocations: 1.224 MB / 405.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003296/0.2992, allocations: 1.875 MB / 407.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006234/0.3055, allocations: 5.523 MB / 413.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3055, allocations: 1.125 kB / 413.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3055, allocations: 1.375 kB / 413.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.742e-05/0.3056, allocations: 0 / 413.1 MB, free: 8.359 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.008182/0.3138, allocations: 3.809 MB / 416.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.3139, allocations: 8.312 kB / 417 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/0.315, allocations: 391.3 kB / 417.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003862/0.3189, allocations: 1.948 MB / 419.3 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.3191, allocations: 214.2 kB / 419.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004777/0.3196, allocations: 291.8 kB / 419.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006559/0.3261, allocations: 3.697 MB / 423.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.138e-05/0.3262, allocations: 15.78 kB / 423.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003242/0.3265, allocations: 117.1 kB / 423.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/0.3267, allocations: 141.5 kB / 423.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005724/0.3325, allocations: 3.102 MB / 426.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02061/0.3531, allocations: 11.51 MB / 438.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.3557, allocations: 1.905 MB / 440.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001796/0.3575, allocations: 1.076 MB / 441.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003237/0.3579, allocations: 207.2 kB / 441.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.3579, allocations: 43.56 kB / 441.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.416e-06/0.358, allocations: 0 / 441.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01353/0.3715, allocations: 6.531 MB / 448.1 MB, free: 6.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.3716, allocations: 72.66 kB / 448.2 MB, free: 6.398 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/0.3747, allocations: 1.99 MB / 450.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001531/0.3749, allocations: 45.7 kB / 450.2 MB, free: 4.316 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001074/0.376, allocations: 1.408 MB / 451.6 MB, free: 2.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004671/0.3764, allocations: 489 kB / 452.1 MB, free: 2.406 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005222/0.377, allocations: 331.2 kB / 452.4 MB, free: 2.074 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.3771, allocations: 305.1 kB / 452.7 MB, free: 1.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.3784, allocations: 0.8159 MB / 453.5 MB, free: 0.957 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.3801, allocations: 1.375 MB / 454.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003164/0.3833, allocations: 2.368 MB / 457.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.3833, allocations: 4 kB / 457.3 MB, free: 12.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004773/0.3881, allocations: 2.854 MB / 460.1 MB, free: 9.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.3881, allocations: 16 kB / 460.2 MB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-05/0.3882, allocations: 20 kB / 460.2 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000923/0.3891, allocations: 395.1 kB / 460.6 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.3907, allocations: 435.3 kB / 461 MB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006575/0.3973, allocations: 6.702 MB / 467.7 MB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/0.3993, allocations: 127.8 kB / 467.8 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001982/0.3995, allocations: 72 kB / 467.9 MB, free: 1.648 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.001682/0.4012, allocations: 0.9194 MB / 468.8 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004578/0.4016, allocations: 209.3 kB / 469 MB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004334/0.406, allocations: 2.429 MB / 471.4 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.406, allocations: 16 kB / 471.5 MB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.406, allocations: 7.938 kB / 471.5 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.406, allocations: 11.97 kB / 471.5 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/0.4162, allocations: 5.489 MB / 477 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.4162, allocations: 12.03 kB / 477 MB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.4174, allocations: 259.6 kB / 477.2 MB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.4185, allocations: 407.7 kB / 477.6 MB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/0.4186, allocations: 39.98 kB / 477.7 MB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007629/0.4262, allocations: 8.251 MB / 485.9 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.4262, allocations: 7.938 kB / 485.9 MB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005556/0.4318, allocations: 3.603 MB / 489.5 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/0.4331, allocations: 466.4 kB / 490 MB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003293/0.4334, allocations: 35.98 kB / 490 MB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.4345, allocations: 91.89 kB / 490.1 MB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.4348, allocations: 105 kB / 490.2 MB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.678e-05/0.4349, allocations: 40 kB / 490.2 MB, free: 10.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002144/0.437, allocations: 1.361 MB / 491.6 MB, free: 8.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.437, allocations: 4 kB / 491.6 MB, free: 8.992 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002103/0.4391, allocations: 0.5352 MB / 492.1 MB, free: 8.457 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.0004085/0.4395, allocations: 202.1 kB / 492.3 MB, free: 8.254 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003775/0.4433, allocations: 2.5 MB / 494.8 MB, free: 5.695 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-05/0.4434, allocations: 4 kB / 494.9 MB, free: 5.691 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002051/0.4455, allocations: 1.483 MB / 496.3 MB, free: 4.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002519/0.448, allocations: 0.5396 MB / 496.9 MB, free: 3.617 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00943/0.4574, allocations: 5.731 MB / 0.4908 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002068/0.4595, allocations: 2.159 MB / 0.4929 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007037/0.4603, allocations: 163.4 kB / 0.4931 GB, free: 11.45 MB / 430.1 MB Notification: Performance of SimCode: time 2.966e-06/0.4603, allocations: 112 / 0.4931 GB, free: 11.45 MB / 430.1 MB Notification: Performance of Templates: time 0.2608/0.7211, allocations: 91.9 MB / 0.5828 GB, free: 142.1 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