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.001258/0.001258, allocations: 104.9 kB / 17.72 MB, free: 5.242 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.001112/0.001113, allocations: 188.1 kB / 18.66 MB, free: 4.312 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.818/1.818, allocations: 205.1 MB / 224.5 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.001612/0.001612, allocations: 52.3 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1419, allocations: 46.62 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.3155/0.4574, allocations: 11.59 MB / 386.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01187/0.4694, allocations: 3.958 MB / 390.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004176/0.4736, allocations: 64.5 kB / 390.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004029/0.4777, allocations: 0.9153 MB / 391.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007579/0.4854, allocations: 0.9962 MB / 392.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003011/0.4884, allocations: 0.5215 MB / 393.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009797/0.4982, allocations: 3.306 MB / 396.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009923/0.5082, allocations: 2.984 MB / 399.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007186/0.5154, allocations: 1.536 MB / 401 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008288/0.5238, allocations: 1.966 MB / 403 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003822/0.5277, allocations: 423.1 kB / 403.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005608/0.5333, allocations: 0.5296 MB / 403.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005158/0.5385, allocations: 1.222 MB / 405.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00883/0.5474, allocations: 1.875 MB / 407 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.5609, allocations: 5.524 MB / 412.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.35e-05/0.561, allocations: 0 / 412.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.561, allocations: 6.188 kB / 412.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003358/0.5613, allocations: 0 / 412.6 MB, free: 8.258 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.0205/0.5818, allocations: 3.804 MB / 416.4 MB, free: 5.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.689e-05/0.5819, allocations: 13.81 kB / 416.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003148/0.5851, allocations: 390.3 kB / 416.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009264/0.5944, allocations: 1.944 MB / 418.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004201/0.5949, allocations: 214.2 kB / 418.9 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001623/0.5965, allocations: 291.8 kB / 419.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/0.6098, allocations: 3.693 MB / 422.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/0.61, allocations: 7.906 kB / 422.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004178/0.6104, allocations: 116 kB / 423 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002343/0.6106, allocations: 146.5 kB / 423.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.6214, allocations: 3.106 MB / 426.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04273/0.6641, allocations: 11.51 MB / 437.8 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004863/0.6691, allocations: 1.909 MB / 439.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003102/0.6722, allocations: 1.068 MB / 440.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005213/0.6728, allocations: 211.1 kB / 441 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.487e-05/0.6729, allocations: 43.56 kB / 441 MB, free: 13.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 5.871e-06/0.6729, allocations: 0 / 441 MB, free: 13.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02353/0.6965, allocations: 6.527 MB / 447.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.6967, allocations: 72.64 kB / 447.6 MB, free: 6.277 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006336/0.7031, allocations: 1.99 MB / 449.6 MB, free: 4.246 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003557/0.7035, allocations: 45.7 kB / 449.6 MB, free: 4.195 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001893/0.7054, allocations: 1.408 MB / 451.1 MB, free: 2.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008445/0.7062, allocations: 485 kB / 451.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009098/0.7072, allocations: 335.2 kB / 451.9 MB, free: 1.953 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002413/0.7074, allocations: 305.1 kB / 452.2 MB, free: 1.652 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/0.7095, allocations: 0.8198 MB / 453 MB, free: 0.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002652/0.7122, allocations: 1.375 MB / 454.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005176/0.7174, allocations: 2.368 MB / 456.7 MB, free: 12.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.772e-05/0.7174, allocations: 4 kB / 456.7 MB, free: 12.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.008398/0.7258, allocations: 2.854 MB / 459.6 MB, free: 9.695 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.992e-05/0.7259, allocations: 12 kB / 459.6 MB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-05/0.726, allocations: 20 kB / 459.6 MB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/0.7276, allocations: 387.4 kB / 460 MB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002423/0.73, allocations: 431.3 kB / 460.4 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/0.7403, allocations: 6.715 MB / 467.1 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003103/0.7435, allocations: 123.8 kB / 467.2 MB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005388/0.7441, allocations: 79.98 kB / 467.3 MB, free: 1.523 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.004055/0.7482, allocations: 0.9155 MB / 468.2 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00157/0.7497, allocations: 209.3 kB / 468.4 MB, free: 400 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007238/0.757, allocations: 2.425 MB / 470.9 MB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.757, allocations: 16 kB / 470.9 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.847e-05/0.7571, allocations: 7.938 kB / 470.9 MB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.848e-05/0.7571, allocations: 7.969 kB / 470.9 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01718/0.7743, allocations: 5.501 MB / 476.4 MB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.713e-05/0.7744, allocations: 4 kB / 476.4 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.7757, allocations: 263.6 kB / 476.7 MB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001392/0.7771, allocations: 403.1 kB / 477.1 MB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/0.7774, allocations: 39.98 kB / 477.1 MB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/0.7896, allocations: 8.25 MB / 485.3 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.254e-05/0.7897, allocations: 7.938 kB / 485.3 MB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008403/0.7981, allocations: 3.603 MB / 489 MB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/0.8004, allocations: 470.4 kB / 489.4 MB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001222/0.8016, allocations: 36 kB / 489.4 MB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/0.8033, allocations: 92 kB / 489.5 MB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003281/0.8036, allocations: 105.1 kB / 489.6 MB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.8037, allocations: 47.98 kB / 489.7 MB, free: 10.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002905/0.8066, allocations: 1.361 MB / 491 MB, free: 8.867 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.8066, allocations: 0 / 491 MB, free: 8.867 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003361/0.81, allocations: 0.5391 MB / 491.6 MB, free: 8.328 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.0006812/0.8107, allocations: 194.2 kB / 491.8 MB, free: 8.133 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004735/0.8155, allocations: 2.503 MB / 494.3 MB, free: 5.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.8155, allocations: 4 kB / 494.3 MB, free: 5.566 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002311/0.8178, allocations: 1.488 MB / 495.8 MB, free: 4.031 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003136/0.821, allocations: 0.5326 MB / 496.3 MB, free: 3.496 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.8336, allocations: 5.673 MB / 0.4902 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002613/0.8362, allocations: 2.197 MB / 0.4924 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002649/0.8389, allocations: 0.4979 MB / 0.4928 GB, free: 11.01 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009783/0.8399, allocations: 155.4 kB / 0.493 GB, free: 10.86 MB / 430.1 MB Notification: Performance of SimCode: time 1.793e-06/0.8399, allocations: 0 / 0.493 GB, free: 10.86 MB / 430.1 MB Notification: Performance of Templates: time 0.08277/0.9227, allocations: 30.1 MB / 0.5224 GB, free: 12.69 MB / 462.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/jenkins/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/jenkins/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