Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_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.001698/0.001698, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002066/0.002066, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2746, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02051/0.2952, allocations: 15.81 MB / 424.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0118/0.307, allocations: 5.338 MB / 429.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003139/0.3102, allocations: 103.6 kB / 430 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003858/0.3141, allocations: 1.086 MB / 431.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004633/0.3188, allocations: 1.239 MB / 432.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.3216, allocations: 0.9153 MB / 433.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005391/0.327, allocations: 3.645 MB / 436.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005259/0.3323, allocations: 3.318 MB / 440.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002852/0.3352, allocations: 1.737 MB / 442 MB, free: 164 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003686/0.3389, allocations: 2.114 MB / 444.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001249/0.3401, allocations: 480 kB / 444.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002179/0.3423, allocations: 0.6989 MB / 445.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001703/0.3441, allocations: 1.153 MB / 446.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003612/0.3477, allocations: 2.05 MB / 448.4 MB, free: 9.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.3581, allocations: 6.318 MB / 454.8 MB, free: 3.316 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.3582, allocations: 4 kB / 454.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3582, allocations: 0 / 454.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001947/0.3584, allocations: 0 / 454.8 MB, free: 3.312 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0125/0.3709, allocations: 4.363 MB / 459.1 MB, free: 14.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.3709, allocations: 8.031 kB / 459.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001138/0.3721, allocations: 455.3 kB / 459.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003467/0.3756, allocations: 0.6466 MB / 460.2 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005145/0.3807, allocations: 2.302 MB / 462.5 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002487/0.381, allocations: 242.4 kB / 462.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008279/0.3818, allocations: 315.9 kB / 463.1 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008658/0.3905, allocations: 4.047 MB / 467.1 MB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-05/0.3906, allocations: 7.953 kB / 467.1 MB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004942/0.3911, allocations: 132 kB / 467.3 MB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/0.3913, allocations: 142.2 kB / 467.4 MB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007093/0.3984, allocations: 3.39 MB / 470.8 MB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02385/0.4223, allocations: 13.38 MB / 484.2 MB, free: 5.211 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00513/0.4275, allocations: 4.266 MB / 488.4 MB, free: 404 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001831/0.4293, allocations: 1.02 MB / 489.4 MB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00554/0.4349, allocations: 2.859 MB / 492.3 MB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.435, allocations: 43.56 kB / 492.3 MB, free: 12.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.755e-06/0.435, allocations: 0 / 492.3 MB, free: 12.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01302/0.448, allocations: 6.048 MB / 498.4 MB, free: 6.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.4481, allocations: 64.72 kB / 498.5 MB, free: 6.129 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/0.4515, allocations: 1.913 MB / 0.4886 GB, free: 4.172 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001386/0.4517, allocations: 53.7 kB / 0.4887 GB, free: 4.113 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/0.453, allocations: 1.552 MB / 0.4902 GB, free: 2.547 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005554/0.4536, allocations: 0.5035 MB / 0.4907 GB, free: 2.039 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005511/0.4541, allocations: 339.4 kB / 0.491 GB, free: 1.699 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.4543, allocations: 305.1 kB / 0.4913 GB, free: 1.398 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.4556, allocations: 0.7691 MB / 0.4921 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001786/0.4574, allocations: 1.379 MB / 0.4934 GB, free: 14.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00324/0.4606, allocations: 2.316 MB / 0.4957 GB, free: 12.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.4606, allocations: 4 kB / 0.4957 GB, free: 12.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004431/0.4651, allocations: 2.479 MB / 0.4981 GB, free: 9.902 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.4651, allocations: 12 kB / 0.4981 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.091e-05/0.4652, allocations: 27.97 kB / 0.4981 GB, free: 9.863 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003913/0.4656, allocations: 122.5 kB / 0.4983 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.4673, allocations: 479.2 kB / 0.4987 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.4686, allocations: 1.402 MB / 0.5001 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.4702, allocations: 119.8 kB / 0.5002 GB, free: 7.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.4704, allocations: 80 kB / 0.5003 GB, free: 7.523 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001876/0.4723, allocations: 0.9889 MB / 0.5012 GB, free: 6.523 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005198/0.4728, allocations: 214.7 kB / 0.5014 GB, free: 6.312 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003635/0.4764, allocations: 1.966 MB / 0.5034 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/0.4765, allocations: 16 kB / 0.5034 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.4765, allocations: 0 / 0.5034 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.4765, allocations: 7.969 kB / 0.5034 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009431/0.486, allocations: 4.999 MB / 0.5083 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.486, allocations: 4 kB / 0.5083 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/0.4874, allocations: 303.8 kB / 0.5086 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003275/0.4877, allocations: 98.45 kB / 0.5087 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.4879, allocations: 35.98 kB / 0.5087 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.4891, allocations: 1.371 MB / 0.51 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.4891, allocations: 4.156 kB / 0.51 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00506/0.4942, allocations: 3.103 MB / 0.5131 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.4953, allocations: 463.6 kB / 0.5135 GB, free: 9.609 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000442/0.4957, allocations: 28 kB / 0.5135 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.4969, allocations: 75.91 kB / 0.5136 GB, free: 9.508 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/0.4971, allocations: 93.19 kB / 0.5137 GB, free: 9.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.741e-05/0.4972, allocations: 39.98 kB / 0.5137 GB, free: 9.379 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.4998, allocations: 1.297 MB / 0.515 GB, free: 8.059 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4998, allocations: 0 / 0.515 GB, free: 8.059 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002109/0.5019, allocations: 0.5351 MB / 0.5155 GB, free: 7.523 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.005494/0.5074, allocations: 3.719 MB / 0.5192 GB, free: 3.738 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003905/0.5113, allocations: 2.224 MB / 0.5213 GB, free: 1.461 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5114, allocations: 0 / 0.5213 GB, free: 1.461 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.5131, allocations: 1.173 MB / 0.5225 GB, free: 240 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002864/0.516, allocations: 0.5268 MB / 0.523 GB, free: 15.71 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2455/0.7615, allocations: 20.08 MB / 0.5426 GB, free: 124.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001535/0.7631, allocations: 2.276 MB / 0.5448 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00145/0.7646, allocations: 0.5128 MB / 0.5453 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/0.7658, allocations: 1.182 MB / 0.5465 GB, free: 122.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.322e-06/0.7658, allocations: 0 / 0.5465 GB, free: 122.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07968/0.8455, allocations: 49.94 MB / 0.5953 GB, free: 77.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.46, allocations: 10.23 kB / 0.5953 GB, free: 77.66 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches