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.001191/0.001192, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001199/0.001199, allocations: 183 kB / 18.67 MB, free: 4.398 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.732/1.732, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001802/0.001802, allocations: 43.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1686, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.3469/0.5156, allocations: 11.6 MB / 386.8 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.5293, allocations: 3.957 MB / 390.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00506/0.5345, allocations: 64.41 kB / 390.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005835/0.5404, allocations: 0.8703 MB / 391.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00862/0.5491, allocations: 0.9485 MB / 392.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003594/0.5527, allocations: 0.5223 MB / 393.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01013/0.5629, allocations: 3.305 MB / 396.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009341/0.5723, allocations: 2.981 MB / 399.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005883/0.5782, allocations: 1.527 MB / 400.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006982/0.5852, allocations: 1.97 MB / 402.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002994/0.5883, allocations: 422.8 kB / 403.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004459/0.5928, allocations: 0.5239 MB / 403.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005647/0.5984, allocations: 1.226 MB / 405.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01178/0.6103, allocations: 1.877 MB / 406.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02257/0.633, allocations: 5.528 MB / 412.5 MB, free: 8.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.559e-05/0.6331, allocations: 3.984 kB / 412.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.572e-06/0.6331, allocations: 0 / 412.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004925/0.6337, allocations: 1.375 kB / 412.5 MB, free: 8.34 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.0336/0.6673, allocations: 3.897 MB / 416.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.000142/0.6675, allocations: 9.625 kB / 416.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006105/0.6736, allocations: 413.9 kB / 416.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01204/0.6857, allocations: 1.961 MB / 418.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002964/0.6861, allocations: 218.2 kB / 419 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001702/0.6878, allocations: 287.9 kB / 419.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01139/0.6992, allocations: 3.697 MB / 422.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.6994, allocations: 7.953 kB / 422.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002967/0.6997, allocations: 116 kB / 423.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001823/0.6999, allocations: 145.5 kB / 423.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007423/0.7073, allocations: 3.109 MB / 426.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03096/0.7383, allocations: 11.54 MB / 437.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003157/0.7416, allocations: 1.9 MB / 439.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002054/0.7437, allocations: 1.073 MB / 440.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004374/0.7441, allocations: 211.7 kB / 441 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.734e-05/0.7442, allocations: 55.5 kB / 441.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 4.358e-06/0.7442, allocations: 0.75 kB / 441.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.0173/0.7615, allocations: 6.567 MB / 447.7 MB, free: 6.242 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.7617, allocations: 64.72 kB / 447.7 MB, free: 6.168 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006125/0.7679, allocations: 1.99 MB / 449.7 MB, free: 4.137 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004489/0.7684, allocations: 49.7 kB / 449.8 MB, free: 4.082 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/0.7702, allocations: 1.448 MB / 451.2 MB, free: 2.621 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/0.7712, allocations: 0.5074 MB / 451.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007474/0.772, allocations: 331.4 kB / 452 MB, free: 1.777 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.7722, allocations: 305.1 kB / 452.3 MB, free: 1.477 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.7738, allocations: 0.8237 MB / 453.2 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/0.7759, allocations: 1.375 MB / 454.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003414/0.7793, allocations: 2.368 MB / 456.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/0.7793, allocations: 4 kB / 456.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005822/0.7852, allocations: 2.863 MB / 459.8 MB, free: 9.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.7852, allocations: 12 kB / 459.8 MB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.029e-05/0.7853, allocations: 20 kB / 459.8 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.7863, allocations: 381.3 kB / 460.2 MB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001612/0.7879, allocations: 435.3 kB / 460.6 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00834/0.7963, allocations: 6.715 MB / 467.3 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/0.7999, allocations: 131.9 kB / 467.4 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004569/0.8004, allocations: 76 kB / 467.5 MB, free: 1.336 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.003528/0.8039, allocations: 0.9116 MB / 468.4 MB, free: 424 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001329/0.8053, allocations: 218.5 kB / 468.6 MB, free: 204 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006679/0.812, allocations: 2.425 MB / 471.1 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.345e-05/0.8121, allocations: 12 kB / 471.1 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.144e-05/0.8121, allocations: 7.938 kB / 471.1 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/0.8121, allocations: 7.969 kB / 471.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01744/0.8296, allocations: 5.509 MB / 476.6 MB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-05/0.8297, allocations: 4 kB / 476.6 MB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.831, allocations: 263.6 kB / 476.9 MB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.8324, allocations: 411.6 kB / 477.3 MB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002031/0.8327, allocations: 39.98 kB / 477.3 MB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/0.8438, allocations: 8.246 MB / 485.5 MB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.8439, allocations: 8.25 kB / 485.6 MB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00882/0.8527, allocations: 3.616 MB / 489.2 MB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002219/0.855, allocations: 479.5 kB / 489.6 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001253/0.8563, allocations: 35.98 kB / 489.7 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/0.8586, allocations: 91.89 kB / 489.8 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003597/0.8589, allocations: 105 kB / 489.9 MB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/0.8591, allocations: 40 kB / 489.9 MB, free: 10.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004604/0.8637, allocations: 1.361 MB / 491.3 MB, free: 8.656 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8638, allocations: 0 / 491.3 MB, free: 8.656 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004584/0.8684, allocations: 0.539 MB / 491.8 MB, free: 8.117 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.0008105/0.8692, allocations: 202.2 kB / 492 MB, free: 7.914 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005922/0.8751, allocations: 2.5 MB / 494.5 MB, free: 5.355 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.604e-05/0.8752, allocations: 4 kB / 494.5 MB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002834/0.878, allocations: 1.495 MB / 496 MB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005703/0.8838, allocations: 0.5392 MB / 496.5 MB, free: 3.266 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/0.9001, allocations: 5.769 MB / 0.4905 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00271/0.9029, allocations: 2.197 MB / 0.4927 GB, free: 11.18 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002524/0.9054, allocations: 0.4941 MB / 0.4932 GB, free: 10.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005418/0.906, allocations: 159.3 kB / 0.4933 GB, free: 10.52 MB / 430.1 MB Notification: Performance of SimCode: time 2.645e-06/0.906, allocations: 0 / 0.4933 GB, free: 10.52 MB / 430.1 MB Notification: Performance of Templates: time 0.08206/0.9881, allocations: 30.1 MB / 0.5227 GB, free: 12.36 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