Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0008119/0.0008123, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009561/0.0009561, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001878/0.0001878, allocations: 8.281 kB / 307.9 MB, free: 0.6836 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07851/0.07871, allocations: 51.52 MB / 359.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1766/0.2553, allocations: 39.45 MB / 398.8 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02091/0.2763, allocations: 10.97 MB / 409.8 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006432/0.2827, allocations: 295.7 kB / 410.1 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006354/0.2891, allocations: 2.261 MB / 412.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01056/0.2997, allocations: 3.211 MB / 415.6 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004986/0.3047, allocations: 2.058 MB / 417.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01408/0.3188, allocations: 13.49 MB / 431.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0346/0.3534, allocations: 24.33 MB / 455.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006283/0.3597, allocations: 4.891 MB / 460.3 MB, free: 6.191 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007734/0.3675, allocations: 6.118 MB / 466.5 MB, free: 48 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001735/0.3692, allocations: 0.7774 MB / 467.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003346/0.3726, allocations: 1.195 MB / 468.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001912/0.3745, allocations: 2.553 MB / 471 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006459/0.3809, allocations: 6.159 MB / 477.1 MB, free: 5.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02055/0.4015, allocations: 24.84 MB / 0.4902 GB, free: 12.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4016, allocations: 0 / 0.4902 GB, free: 12.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.4016, allocations: 4 kB / 0.4902 GB, free: 12.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004785/0.4021, allocations: 4 kB / 0.4902 GB, free: 12.38 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.03013/0.4322, allocations: 12.8 MB / 0.5027 GB, free: 15.46 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4322, allocations: 8.031 kB / 0.5027 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00375/0.436, allocations: 1.76 MB / 0.5045 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03035/0.4664, allocations: 6.221 MB / 0.5105 GB, free: 7.438 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01422/0.4806, allocations: 8.033 MB / 0.5184 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008377/0.4815, allocations: 0.9429 MB / 0.5193 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003228/0.4847, allocations: 1.23 MB / 0.5205 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3267/0.8114, allocations: 19.01 MB / 0.5391 GB, free: 118.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002999/0.8117, allocations: 22.83 kB / 0.5391 GB, free: 118.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001276/0.813, allocations: 0.5051 MB / 0.5396 GB, free: 118.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005649/0.8136, allocations: 0.6547 MB / 0.5402 GB, free: 118.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02895/0.8425, allocations: 17.03 MB / 0.5569 GB, free: 112.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08426/0.9268, allocations: 61.57 MB / 0.617 GB, free: 60.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/0.9453, allocations: 33.49 MB / 0.6497 GB, free: 23.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004804/0.9501, allocations: 3.842 MB / 0.6534 GB, free: 19.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01288/0.963, allocations: 9.126 MB / 0.6624 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.9631, allocations: 73.41 kB / 0.6624 GB, free: 10.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 4.729e-06/0.9631, allocations: 4 kB / 0.6624 GB, free: 10.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03092/0.994, allocations: 17.8 MB / 0.6798 GB, free: 8.102 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.9941, allocations: 98.52 kB / 0.6799 GB, free: 7.992 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008459/1.003, allocations: 5.253 MB / 0.685 GB, free: 2.758 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002748/1.003, allocations: 89.7 kB / 0.6851 GB, free: 2.664 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003234/1.006, allocations: 5.629 MB / 0.6906 GB, free: 13 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001048/1.007, allocations: 1.401 MB / 0.692 GB, free: 11.61 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006645/1.008, allocations: 0.5325 MB / 0.6925 GB, free: 11.07 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.097e-05/1.008, allocations: 309.1 kB / 0.6928 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004139/1.012, allocations: 2.969 MB / 0.6957 GB, free: 7.797 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005716/1.018, allocations: 6.015 MB / 0.7016 GB, free: 356 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/1.028, allocations: 9.671 MB / 0.711 GB, free: 5.203 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.682e-05/1.028, allocations: 31.94 kB / 0.711 GB, free: 5.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.2045/1.233, allocations: 10.08 MB / 0.7209 GB, free: 149.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.212e-05/1.233, allocations: 52.19 kB / 0.7209 GB, free: 149.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001712/1.233, allocations: 101.7 kB / 0.721 GB, free: 149.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002331/1.236, allocations: 0.9385 MB / 0.722 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00515/1.241, allocations: 1.625 MB / 0.7235 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009603/1.25, allocations: 9.51 MB / 0.7328 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004782/1.255, allocations: 422 kB / 0.7332 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005624/1.256, allocations: 362.7 kB / 0.7336 GB, free: 144.7 MB / 494.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.006372/1.262, allocations: 4.309 MB / 0.7378 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/1.263, allocations: 0.5404 MB / 0.7383 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009092/1.272, allocations: 6.675 MB / 0.7448 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-05/1.272, allocations: 42.47 kB / 0.7449 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/1.272, allocations: 7.812 kB / 0.7449 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.921e-05/1.272, allocations: 22.28 kB / 0.7449 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02188/1.294, allocations: 16.27 MB / 0.7608 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/1.294, allocations: 3.875 kB / 0.7608 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002756/1.297, allocations: 0.7709 MB / 0.7615 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/1.299, allocations: 0.7928 MB / 0.7623 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002113/1.299, allocations: 90.38 kB / 0.7624 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007437/1.306, allocations: 8.671 MB / 0.7709 GB, free: 127.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.306, allocations: 3.75 kB / 0.7709 GB, free: 127.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01121/1.318, allocations: 9.797 MB / 0.7804 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/1.32, allocations: 1.117 MB / 0.7815 GB, free: 120.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000539/1.32, allocations: 75.75 kB / 0.7816 GB, free: 120.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/1.322, allocations: 234.1 kB / 0.7818 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004505/1.323, allocations: 269.4 kB / 0.7821 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/1.323, allocations: 122.6 kB / 0.7822 GB, free: 119.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004261/1.327, allocations: 3.505 MB / 0.7856 GB, free: 116.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.327, allocations: 4 kB / 0.7856 GB, free: 116.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005752/1.333, allocations: 1.945 MB / 0.7875 GB, free: 114.5 MB / 494.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,59.4%), (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.01185/1.345, allocations: 10.53 MB / 0.7978 GB, free: 103.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00963/1.354, allocations: 7.831 MB / 0.8055 GB, free: 95.96 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/1.354, allocations: 4 kB / 0.8055 GB, free: 95.95 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004004/1.358, allocations: 3.64 MB / 0.809 GB, free: 92.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008083/1.367, allocations: 1.332 MB / 0.8103 GB, free: 90.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1132/1.48, allocations: 89.71 MB / 0.8979 GB, free: 8.871 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1856/1.665, allocations: 7.423 MB / 0.9052 GB, free: 170.7 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.007127/1.673, allocations: 2.227 MB / 0.9073 GB, free: 170.6 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005448/1.678, allocations: 4.51 MB / 0.9118 GB, free: 169.1 MB / 0.4982 GB Notification: Performance of SimCode: time 8.02e-07/1.678, allocations: 1.156 kB / 0.9118 GB, free: 169.1 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1826/1.861, allocations: 151.3 MB / 1.059 GB, free: 38.96 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/1.861, allocations: 304.6 kB / 1.06 GB, free: 38.58 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.412/6.273, allocations: 4 kB / 1.06 GB, free: 38.57 MB / 0.4982 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches