Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009855/0.0009856, allocations: 93.7 kB / 16.93 MB, free: 5.984 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.001025/0.001025, allocations: 179.4 kB / 17.82 MB, free: 5.652 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.458/1.458, allocations: 205.4 MB / 224 MB, free: 13.16 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.000541/0.000541, allocations: 12 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.102, allocations: 47.58 MB / 328.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.0154/0.1174, allocations: 12.82 MB / 341.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.1294, allocations: 5.136 MB / 346.3 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003364/0.1328, allocations: 83.62 kB / 346.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003969/0.1368, allocations: 0.9482 MB / 347.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005422/0.1422, allocations: 1.382 MB / 348.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002652/0.1449, allocations: 0.7211 MB / 349.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005716/0.1506, allocations: 2.703 MB / 352.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003411/0.154, allocations: 2.528 MB / 354.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002059/0.1561, allocations: 1.261 MB / 355.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002131/0.1583, allocations: 1.599 MB / 357.5 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003941/0.1587, allocations: 200 kB / 357.7 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.1597, allocations: 387.7 kB / 358.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008188/0.1606, allocations: 0.8566 MB / 359 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008187/0.1614, allocations: 0.7614 MB / 359.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00533/0.1667, allocations: 5.512 MB / 365.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.1668, allocations: 0 / 365.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.1668, allocations: 4 kB / 365.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001781/0.1669, allocations: 0 / 365.2 MB, free: 15.04 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.009502/0.1765, allocations: 3.932 MB / 369.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.1765, allocations: 20.02 kB / 369.2 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003458/0.18, allocations: 0.6782 MB / 369.9 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005167/0.1852, allocations: 2.284 MB / 372.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.1855, allocations: 266.9 kB / 372.4 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000794/0.1863, allocations: 351.8 kB / 372.7 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008461/0.1948, allocations: 4.406 MB / 377.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.442e-05/0.1949, allocations: 7.906 kB / 377.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003172/0.1952, allocations: 140 kB / 377.3 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001773/0.1954, allocations: 174.7 kB / 377.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2291/0.4246, allocations: 3.706 MB / 381.2 MB, free: 29.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0305/0.4551, allocations: 14.48 MB / 395.6 MB, free: 25.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00437/0.4595, allocations: 5.349 MB / 401 MB, free: 22.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005554/0.4651, allocations: 3.2 MB / 404.2 MB, free: 20.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.4652, allocations: 47.53 kB / 404.2 MB, free: 20.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=138): time 3.587e-06/0.4652, allocations: 0 / 404.2 MB, free: 20.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=143): time 0.00957/0.4748, allocations: 5.771 MB / 410 MB, free: 18.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.4748, allocations: 74.38 kB / 410.1 MB, free: 18.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.4779, allocations: 1.997 MB / 412.1 MB, free: 16.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001951/0.4781, allocations: 45.42 kB / 412.1 MB, free: 16.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008793/0.479, allocations: 1.643 MB / 413.8 MB, free: 15.42 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003829/0.4794, allocations: 495.3 kB / 414.3 MB, free: 15 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.4794, allocations: 40.91 kB / 414.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.4796, allocations: 380.6 kB / 414.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.4806, allocations: 0.7503 MB / 415.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.4818, allocations: 1.365 MB / 416.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.483, allocations: 0.9826 MB / 417.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.924e-06/0.483, allocations: 3.938 kB / 417.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.003697/0.4867, allocations: 2.583 MB / 420.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.4867, allocations: 15.98 kB / 420.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.837e-05/0.4868, allocations: 20 kB / 420.4 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003471/0.4871, allocations: 146.9 kB / 420.5 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.4887, allocations: 489.8 kB / 421 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.4906, allocations: 3.081 MB / 424.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.4924, allocations: 115.7 kB / 424.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001935/0.4926, allocations: 83.98 kB / 424.3 MB, free: 5.957 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (235): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00244/0.4951, allocations: 1.065 MB / 425.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005257/0.4956, allocations: 213.4 kB / 425.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003362/0.499, allocations: 2.29 MB / 427.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.499, allocations: 16 kB / 427.9 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/0.499, allocations: 8.109 kB / 427.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.4991, allocations: 3.984 kB / 427.9 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/0.5094, allocations: 5.409 MB / 433.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.5095, allocations: 0 / 433.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.5109, allocations: 262.7 kB / 433.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000746/0.5116, allocations: 270.6 kB / 433.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.5118, allocations: 35.98 kB / 433.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007396/0.5192, allocations: 7.165 MB / 441 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5192, allocations: 0 / 441 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005941/0.5252, allocations: 3.527 MB / 444.5 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/0.5268, allocations: 466.3 kB / 445 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005315/0.5274, allocations: 31.98 kB / 445 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.5285, allocations: 71.92 kB / 445.1 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002806/0.5288, allocations: 101 kB / 445.2 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.519e-05/0.5289, allocations: 47.98 kB / 445.2 MB, free: 240 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00276/0.5317, allocations: 1.348 MB / 446.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5317, allocations: 0 / 446.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002474/0.5342, allocations: 0.5649 MB / 447.1 MB, free: 14.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003637/0.5346, allocations: 170.1 kB / 447.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003561/0.5381, allocations: 2.17 MB / 449.5 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5382, allocations: 0 / 449.5 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002113/0.5403, allocations: 1.432 MB / 450.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/0.5429, allocations: 0.5008 MB / 451.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.5558, allocations: 7.435 MB / 458.9 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002358/0.5582, allocations: 2.483 MB / 461.3 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001933/0.5601, allocations: 0.4907 MB / 461.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/0.5606, allocations: 157.4 kB / 462 MB, free: 15.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5606, allocations: 0 / 462 MB, free: 15.41 MB / 366.1 MB Notification: Performance of Templates: time 0.05253/0.6132, allocations: 25.98 MB / 488 MB, free: 5.473 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches