Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 112.2 kB / 16.62 MB, free: 6.812 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.001095/0.001095, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 53.61 kB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08352/0.08484, allocations: 49.44 MB / 349.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1759/0.2608, allocations: 40.42 MB / 390.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0214/0.2823, allocations: 10.77 MB / 400.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007921/0.2902, allocations: 298.5 kB / 401.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0194/0.3096, allocations: 8.23 MB / 409.4 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01259/0.3222, allocations: 3.193 MB / 412.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00711/0.3294, allocations: 2.208 MB / 414.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01676/0.3461, allocations: 13.35 MB / 428.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04027/0.3864, allocations: 28.93 MB / 457.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009965/0.3965, allocations: 6.965 MB / 464.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01104/0.4075, allocations: 7.973 MB / 472 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005115/0.4127, allocations: 1.992 MB / 474 MB, free: 9.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00717/0.4199, allocations: 2.39 MB / 476.4 MB, free: 7.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004791/0.4247, allocations: 4.041 MB / 480.5 MB, free: 3.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01276/0.4375, allocations: 7.766 MB / 488.2 MB, free: 11.31 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02409/0.4616, allocations: 26.26 MB / 0.5024 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4616, allocations: 0 / 0.5024 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4616, allocations: 0 / 0.5024 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004914/0.4621, allocations: 4 kB / 0.5024 GB, free: 0.9688 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03999/0.5021, allocations: 15.46 MB / 0.5175 GB, free: 1.398 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.5022, allocations: 8.031 kB / 0.5175 GB, free: 1.391 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2824/0.7846, allocations: 1.758 MB / 0.5193 GB, free: 120.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0344/0.8191, allocations: 6.198 MB / 0.5253 GB, free: 119.8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0161/0.8352, allocations: 8.001 MB / 0.5331 GB, free: 115.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001022/0.8363, allocations: 0.9352 MB / 0.534 GB, free: 115.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004084/0.8404, allocations: 1.23 MB / 0.5352 GB, free: 114.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03809/0.8785, allocations: 19.03 MB / 0.5538 GB, free: 103.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003997/0.8789, allocations: 23.8 kB / 0.5538 GB, free: 103.3 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002657/0.8816, allocations: 0.5075 MB / 0.5543 GB, free: 102.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004731/0.882, allocations: 0.6505 MB / 0.555 GB, free: 102.1 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02769/0.9098, allocations: 17.02 MB / 0.5716 GB, free: 85.08 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07355/0.9833, allocations: 60.52 MB / 0.6307 GB, free: 23.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01994/1.003, allocations: 33.16 MB / 0.6631 GB, free: 2.426 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00539/1.009, allocations: 3.805 MB / 0.6668 GB, free: 14.61 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01451/1.023, allocations: 8.89 MB / 0.6755 GB, free: 5.73 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.083e-05/1.023, allocations: 85.28 kB / 0.6756 GB, free: 5.637 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 5.481e-06/1.023, allocations: 0 / 0.6756 GB, free: 5.637 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.0335/1.057, allocations: 17.76 MB / 0.6929 GB, free: 3.762 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/1.057, allocations: 90.58 kB / 0.693 GB, free: 3.66 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2022/1.259, allocations: 5.234 MB / 0.6981 GB, free: 152.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006638/1.26, allocations: 93.05 kB / 0.6982 GB, free: 152.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003066/1.263, allocations: 5.617 MB / 0.7037 GB, free: 149.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001199/1.264, allocations: 1.395 MB / 0.705 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001856/1.266, allocations: 1.352 MB / 0.7064 GB, free: 147.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.498e-05/1.266, allocations: 307.5 kB / 0.7067 GB, free: 147.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004224/1.27, allocations: 2.968 MB / 0.7096 GB, free: 146.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005391/1.276, allocations: 6.016 MB / 0.7154 GB, free: 141.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009138/1.285, allocations: 9.665 MB / 0.7249 GB, free: 134 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.478e-05/1.285, allocations: 32.5 kB / 0.7249 GB, free: 134 MB / 478.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01396/1.299, allocations: 10.08 MB / 0.7348 GB, free: 129.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.417e-05/1.299, allocations: 48.62 kB / 0.7348 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/1.299, allocations: 104.6 kB / 0.7349 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/1.301, allocations: 0.9534 MB / 0.7358 GB, free: 129.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004908/1.306, allocations: 1.628 MB / 0.7374 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009839/1.316, allocations: 10.21 MB / 0.7474 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004916/1.321, allocations: 413.7 kB / 0.7478 GB, free: 122.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005318/1.322, allocations: 361.8 kB / 0.7481 GB, free: 122.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00553/1.327, allocations: 4.306 MB / 0.7523 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009761/1.328, allocations: 0.5444 MB / 0.7529 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009331/1.337, allocations: 6.664 MB / 0.7594 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/1.337, allocations: 40 kB / 0.7594 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/1.337, allocations: 8 kB / 0.7594 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.371e-05/1.337, allocations: 21.38 kB / 0.7594 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02097/1.358, allocations: 16.25 MB / 0.7753 GB, free: 99.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/1.359, allocations: 8.031 kB / 0.7753 GB, free: 99.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003069/1.362, allocations: 0.7645 MB / 0.7761 GB, free: 98.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001993/1.364, allocations: 0.8034 MB / 0.7768 GB, free: 97.68 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002442/1.364, allocations: 91.73 kB / 0.7769 GB, free: 97.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008313/1.372, allocations: 9.351 MB / 0.7861 GB, free: 87.83 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.372, allocations: 11.33 kB / 0.7861 GB, free: 87.82 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0119/1.384, allocations: 9.799 MB / 0.7956 GB, free: 77.91 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002271/1.386, allocations: 1.092 MB / 0.7967 GB, free: 76.79 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00117/1.388, allocations: 75.98 kB / 0.7968 GB, free: 76.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002787/1.39, allocations: 223.8 kB / 0.797 GB, free: 76.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005234/1.391, allocations: 274.8 kB / 0.7973 GB, free: 76.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002493/1.391, allocations: 116 kB / 0.7974 GB, free: 76.11 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005285/1.396, allocations: 3.497 MB / 0.8008 GB, free: 72.64 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/1.396, allocations: 0 / 0.8008 GB, free: 72.64 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006691/1.403, allocations: 1.941 MB / 0.8027 GB, free: 70.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(1,1,100.0%), (8,38,62.5%), (1,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.01227/1.415, allocations: 10.52 MB / 0.813 GB, free: 60.05 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02656/1.442, allocations: 13.47 MB / 0.8261 GB, free: 46.55 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/1.442, allocations: 1.594 kB / 0.8261 GB, free: 46.55 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004317/1.446, allocations: 3.622 MB / 0.8297 GB, free: 42.86 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006769/1.453, allocations: 1.392 MB / 0.831 GB, free: 41.51 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3121/1.765, allocations: 89.62 MB / 0.9185 GB, free: 132.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009367/1.775, allocations: 7.418 MB / 0.9258 GB, free: 128.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00609/1.781, allocations: 2.191 MB / 0.9279 GB, free: 126.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005038/1.786, allocations: 4.502 MB / 0.9323 GB, free: 122 MB / 494.1 MB Notification: Performance of SimCode: time 1.684e-06/1.786, allocations: 0 / 0.9323 GB, free: 122 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.381/2.167, allocations: 155.8 MB / 1.084 GB, free: 141.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/2.167, allocations: 296.5 kB / 1.085 GB, free: 141 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.018/7.185, allocations: 6.672 kB / 1.085 GB, free: 141 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches