Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",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.001306/0.001306, allocations: 103.1 kB / 17.06 MB, free: 6.129 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.001381/0.001381, allocations: 195 kB / 18 MB, free: 5.203 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.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001103, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.252, allocations: 49.43 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01646/0.2685, allocations: 15.89 MB / 416.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009028/0.2776, allocations: 5.368 MB / 421.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002404/0.28, allocations: 103.6 kB / 421.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002843/0.283, allocations: 1.126 MB / 422.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003697/0.2867, allocations: 1.355 MB / 424.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001928/0.2886, allocations: 0.9486 MB / 425 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004008/0.2926, allocations: 3.967 MB / 429 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003642/0.2963, allocations: 3.611 MB / 432.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002141/0.2985, allocations: 1.889 MB / 434.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002594/0.3011, allocations: 2.281 MB / 436.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006398/0.3017, allocations: 0.5156 MB / 437.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001212/0.3029, allocations: 0.7419 MB / 438.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.304, allocations: 1.293 MB / 439.3 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.306, allocations: 2.259 MB / 441.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006279/0.3123, allocations: 6.893 MB / 448.5 MB, free: 8.336 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3123, allocations: 0 / 448.5 MB, free: 8.336 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3123, allocations: 4 kB / 448.5 MB, free: 8.332 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001145/0.3124, allocations: 0 / 448.5 MB, free: 8.332 MB / 366.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.01044/0.3229, allocations: 4.665 MB / 453.2 MB, free: 3.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3229, allocations: 15.89 kB / 453.2 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006415/0.3236, allocations: 493.5 kB / 453.7 MB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002893/0.3265, allocations: 0.6753 MB / 454.3 MB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004922/0.3314, allocations: 2.525 MB / 456.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.3316, allocations: 259.3 kB / 457.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005919/0.3322, allocations: 359.7 kB / 457.5 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007613/0.3399, allocations: 4.464 MB / 461.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.671e-05/0.34, allocations: 4 kB / 461.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003027/0.3403, allocations: 140 kB / 462.1 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001561/0.3405, allocations: 166.8 kB / 462.2 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006231/0.3467, allocations: 3.751 MB / 466 MB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02148/0.3682, allocations: 14.31 MB / 480.3 MB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00535/0.3736, allocations: 5.367 MB / 485.7 MB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001985/0.3756, allocations: 1.252 MB / 486.9 MB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006721/0.3823, allocations: 3.815 MB / 490.7 MB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.3824, allocations: 47.81 kB / 490.8 MB, free: 12.63 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 2.735e-06/0.3824, allocations: 4 kB / 490.8 MB, free: 12.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01067/0.3931, allocations: 5.487 MB / 496.3 MB, free: 6.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.3932, allocations: 68.72 kB / 496.3 MB, free: 6.891 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00334/0.3965, allocations: 2.113 MB / 498.4 MB, free: 4.742 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001732/0.3967, allocations: 45.7 kB / 498.5 MB, free: 4.691 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001194/0.3979, allocations: 1.657 MB / 0.4884 GB, free: 3.016 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004679/0.3984, allocations: 465.4 kB / 0.4889 GB, free: 2.555 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005715/0.399, allocations: 335.1 kB / 0.4892 GB, free: 2.219 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3991, allocations: 305.1 kB / 0.4895 GB, free: 1.918 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.4002, allocations: 0.7223 MB / 0.4902 GB, free: 1.195 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.4018, allocations: 1.352 MB / 0.4915 GB, free: 15.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002782/0.4046, allocations: 2.222 MB / 0.4937 GB, free: 13.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/0.4046, allocations: 8 kB / 0.4937 GB, free: 13.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003941/0.4086, allocations: 2.525 MB / 0.4961 GB, free: 10.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.4086, allocations: 16 kB / 0.4962 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/0.4086, allocations: 20 kB / 0.4962 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003604/0.409, allocations: 131 kB / 0.4963 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/0.4106, allocations: 471.2 kB / 0.4968 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.4131, allocations: 3.349 MB / 0.5 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.4145, allocations: 115.9 kB / 0.5001 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/0.4146, allocations: 83.98 kB / 0.5002 GB, free: 6.02 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001602/0.4163, allocations: 1.051 MB / 0.5012 GB, free: 4.957 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000398/0.4167, allocations: 213.3 kB / 0.5014 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003622/0.4203, allocations: 2.193 MB / 0.5036 GB, free: 2.492 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.4203, allocations: 12 kB / 0.5036 GB, free: 2.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.4203, allocations: 7.938 kB / 0.5036 GB, free: 2.473 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.4204, allocations: 7.969 kB / 0.5036 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008259/0.4286, allocations: 5.178 MB / 0.5087 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.4287, allocations: 4 kB / 0.5087 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.4297, allocations: 227.7 kB / 0.5089 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006814/0.4304, allocations: 275.3 kB / 0.5092 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.754e-05/0.4305, allocations: 32 kB / 0.5092 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006547/0.437, allocations: 7.822 MB / 0.5168 GB, free: 4.234 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.437, allocations: 0 / 0.5168 GB, free: 4.234 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004668/0.4417, allocations: 3.192 MB / 0.5199 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009477/0.4427, allocations: 450.4 kB / 0.5204 GB, free: 500 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002468/0.4429, allocations: 28 kB / 0.5204 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009437/0.4439, allocations: 67.92 kB / 0.5205 GB, free: 404 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.4441, allocations: 101.4 kB / 0.5206 GB, free: 304 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-05/0.4442, allocations: 32 kB / 0.5206 GB, free: 272 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002061/0.4462, allocations: 1.435 MB / 0.522 GB, free: 14.81 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4462, allocations: 3.938 kB / 0.522 GB, free: 14.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001914/0.4482, allocations: 0.5586 MB / 0.5225 GB, free: 14.25 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.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 (112): * Single equations (assignments): 108 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00507/0.4532, allocations: 3.807 MB / 0.5263 GB, free: 10.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003351/0.4566, allocations: 2.111 MB / 0.5283 GB, free: 8.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4566, allocations: 0 / 0.5283 GB, free: 8.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002043/0.4587, allocations: 1.389 MB / 0.5297 GB, free: 6.742 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/0.462, allocations: 0.5608 MB / 0.5302 GB, free: 6.188 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2262/0.6882, allocations: 21.22 MB / 0.5509 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/0.6899, allocations: 2.426 MB / 0.5533 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001484/0.6914, allocations: 498 kB / 0.5538 GB, free: 123.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/0.6928, allocations: 1.296 MB / 0.5551 GB, free: 121.8 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6928, allocations: 0 / 0.5551 GB, free: 121.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08103/0.7738, allocations: 52.29 MB / 0.6061 GB, free: 70.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.33, allocations: 4.438 kB / 0.6061 GB, free: 70.09 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches