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.001135/0.001135, allocations: 109.4 kB / 18.34 MB, free: 4.699 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.001166/0.001166, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.592/1.592, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001316/0.001316, allocations: 47.94 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1313, allocations: 46.62 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01413/0.1455, allocations: 11.62 MB / 340.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.1561, allocations: 3.946 MB / 344.3 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003264/0.1594, allocations: 67.69 kB / 344.4 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002841/0.1624, allocations: 0.8653 MB / 345.2 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005067/0.1675, allocations: 0.9512 MB / 346.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002125/0.1696, allocations: 0.511 MB / 346.7 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006717/0.1763, allocations: 3.309 MB / 350 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004259/0.1806, allocations: 2.981 MB / 353 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003515/0.1842, allocations: 1.522 MB / 354.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003015/0.1872, allocations: 1.973 MB / 356.5 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005331/0.1877, allocations: 424 kB / 356.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009771/0.1887, allocations: 0.5232 MB / 357.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.1899, allocations: 1.216 MB / 358.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002089/0.192, allocations: 1.882 MB / 360.5 MB, free: 3.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006158/0.1982, allocations: 5.514 MB / 366 MB, free: 14.24 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1982, allocations: 3.984 kB / 366 MB, free: 14.24 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1982, allocations: 0 / 366 MB, free: 14.24 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000144/0.1984, allocations: 0 / 366 MB, free: 14.24 MB / 318.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.01035/0.2087, allocations: 3.809 MB / 369.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.978e-05/0.2088, allocations: 8.031 kB / 369.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001549/0.2104, allocations: 392.6 kB / 370.2 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00467/0.2151, allocations: 1.946 MB / 372.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001804/0.2153, allocations: 214 kB / 372.4 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00045/0.2157, allocations: 291.8 kB / 372.7 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006798/0.2225, allocations: 3.697 MB / 376.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.557e-05/0.2226, allocations: 11.94 kB / 376.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002507/0.2229, allocations: 116 kB / 376.5 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001685/0.2231, allocations: 145.5 kB / 376.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005079/0.2281, allocations: 3.106 MB / 379.7 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3233/0.5514, allocations: 11.51 MB / 391.2 MB, free: 45.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002644/0.5541, allocations: 1.9 MB / 393.1 MB, free: 43.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001926/0.5561, allocations: 1.086 MB / 394.2 MB, free: 43.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003172/0.5564, allocations: 207.9 kB / 394.4 MB, free: 43.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.629e-05/0.5564, allocations: 46.5 kB / 394.5 MB, free: 42.97 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 2.986e-06/0.5565, allocations: 3.719 kB / 394.5 MB, free: 42.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01269/0.5692, allocations: 6.512 MB / 401 MB, free: 39.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.5692, allocations: 72.44 kB / 401.1 MB, free: 39.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00281/0.5721, allocations: 1.992 MB / 403 MB, free: 38.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.328e-05/0.5722, allocations: 49.39 kB / 403.1 MB, free: 38.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007084/0.5729, allocations: 1.405 MB / 404.5 MB, free: 36.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003347/0.5732, allocations: 494.7 kB / 405 MB, free: 36.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004331/0.5737, allocations: 322.5 kB / 405.3 MB, free: 36.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.9e-05/0.5737, allocations: 312.9 kB / 405.6 MB, free: 35.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.5748, allocations: 0.8154 MB / 406.4 MB, free: 35.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.5763, allocations: 1.379 MB / 407.8 MB, free: 34.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002417/0.5787, allocations: 2.356 MB / 410.2 MB, free: 31.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.5787, allocations: 4 kB / 410.2 MB, free: 31.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003875/0.5826, allocations: 2.862 MB / 413 MB, free: 28.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.5827, allocations: 16 kB / 413 MB, free: 28.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.307e-05/0.5827, allocations: 16 kB / 413.1 MB, free: 28.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007481/0.5835, allocations: 389.5 kB / 413.4 MB, free: 28.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.5848, allocations: 435.3 kB / 413.9 MB, free: 28.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004817/0.5896, allocations: 6.7 MB / 420.6 MB, free: 20.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/0.5915, allocations: 135.6 kB / 420.7 MB, free: 20.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.5917, allocations: 80 kB / 420.8 MB, free: 20.76 MB / 318.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.001774/0.5935, allocations: 0.9119 MB / 421.7 MB, free: 19.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003993/0.5939, allocations: 201.5 kB / 421.9 MB, free: 19.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003325/0.5972, allocations: 2.429 MB / 424.3 MB, free: 17.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.5972, allocations: 16 kB / 424.3 MB, free: 17.15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.5972, allocations: 1.219 kB / 424.3 MB, free: 17.15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.5973, allocations: 11.97 kB / 424.3 MB, free: 17.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00773/0.605, allocations: 5.499 MB / 429.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.605, allocations: 4 kB / 429.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.606, allocations: 259.6 kB / 430.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008877/0.6069, allocations: 399.8 kB / 430.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.481e-05/0.607, allocations: 39.92 kB / 430.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006425/0.6135, allocations: 8.259 MB / 438.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.6135, allocations: 11.92 kB / 438.8 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006356/0.6199, allocations: 3.614 MB / 442.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/0.6217, allocations: 474.3 kB / 442.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004003/0.6221, allocations: 35.98 kB / 442.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.6232, allocations: 83.89 kB / 443 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002734/0.6234, allocations: 117 kB / 443.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.553e-05/0.6235, allocations: 39.98 kB / 443.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002587/0.6261, allocations: 1.357 MB / 444.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 3e-07/0.6261, allocations: 0 / 444.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00261/0.6288, allocations: 0.5408 MB / 445 MB, free: 11.62 MB / 334.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.0005118/0.6293, allocations: 201.2 kB / 445.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004726/0.634, allocations: 2.505 MB / 447.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/0.6341, allocations: 0 / 447.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002426/0.6365, allocations: 1.487 MB / 449.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003717/0.6402, allocations: 0.5276 MB / 449.8 MB, free: 6.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01406/0.6543, allocations: 5.666 MB / 455.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002377/0.6567, allocations: 2.201 MB / 457.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002212/0.659, allocations: 0.4979 MB / 458.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004851/0.6595, allocations: 151.4 kB / 458.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6595, allocations: 0 / 458.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of Templates: time 0.06475/0.7242, allocations: 29.55 MB / 487.8 MB, free: 0.6172 MB / 366.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 -s gbode -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