Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.001328/0.001328, allocations: 105.4 kB / 17.06 MB, free: 5.789 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.00131/0.00131, allocations: 198.9 kB / 18 MB, free: 4.93 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.264/1.264, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 51.91 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2526, allocations: 49.43 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.0128/0.2655, allocations: 11.89 MB / 412.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007834/0.2734, allocations: 3.992 MB / 416.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.2754, allocations: 79.62 kB / 416.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002611/0.278, allocations: 0.8808 MB / 417.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003325/0.2814, allocations: 0.9629 MB / 418.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.2829, allocations: 0.5577 MB / 418.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00417/0.2871, allocations: 3.41 MB / 422 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003965/0.2911, allocations: 3.088 MB / 425.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002084/0.2932, allocations: 1.589 MB / 426.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003023/0.2962, allocations: 2.04 MB / 428.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009705/0.2972, allocations: 432 kB / 429.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.2987, allocations: 0.5466 MB / 429.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001507/0.3002, allocations: 1.251 MB / 431 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002799/0.303, allocations: 1.94 MB / 432.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006048/0.3091, allocations: 5.681 MB / 438.6 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3091, allocations: 0 / 438.6 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3091, allocations: 4 kB / 438.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001776/0.3093, allocations: 0 / 438.6 MB, free: 2.254 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.009644/0.319, allocations: 3.939 MB / 442.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.319, allocations: 19.89 kB / 442.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008559/0.3199, allocations: 422 kB / 443 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/0.3211, allocations: 400.4 kB / 443.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004435/0.3256, allocations: 2.126 MB / 445.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.3258, allocations: 229.9 kB / 445.7 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005619/0.3263, allocations: 291.9 kB / 446 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006846/0.3332, allocations: 3.858 MB / 449.8 MB, free: 6.781 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.659e-05/0.3333, allocations: 15.83 kB / 449.9 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003149/0.3336, allocations: 116 kB / 450 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/0.3338, allocations: 145.7 kB / 450.1 MB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005627/0.3394, allocations: 3.258 MB / 453.4 MB, free: 3.242 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/0.3585, allocations: 12.02 MB / 465.4 MB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/0.3611, allocations: 1.937 MB / 467.3 MB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001785/0.3629, allocations: 1.149 MB / 468.5 MB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003006/0.3632, allocations: 215.5 kB / 468.7 MB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.3632, allocations: 48.42 kB / 468.7 MB, free: 3.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.126e-06/0.3632, allocations: 0 / 468.7 MB, free: 3.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=155): time 0.01265/0.3759, allocations: 7.006 MB / 475.7 MB, free: 12.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.376, allocations: 68.72 kB / 475.8 MB, free: 12.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/0.3787, allocations: 2.032 MB / 477.8 MB, free: 10.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001077/0.3789, allocations: 49.7 kB / 477.9 MB, free: 10 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009895/0.3799, allocations: 1.46 MB / 479.3 MB, free: 8.527 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004113/0.3803, allocations: 0.5314 MB / 479.9 MB, free: 7.988 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005232/0.3808, allocations: 355.2 kB / 480.2 MB, free: 7.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.896e-05/0.3809, allocations: 305.1 kB / 480.5 MB, free: 7.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.3822, allocations: 0.8862 MB / 481.4 MB, free: 6.445 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.3838, allocations: 1.446 MB / 482.9 MB, free: 4.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003077/0.3869, allocations: 2.506 MB / 485.4 MB, free: 1.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.3869, allocations: 4 kB / 485.4 MB, free: 1.988 MB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004682/0.3916, allocations: 3.014 MB / 488.4 MB, free: 14.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.3917, allocations: 12 kB / 488.4 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-05/0.3917, allocations: 19.94 kB / 488.4 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008507/0.3925, allocations: 395.6 kB / 488.8 MB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001537/0.3941, allocations: 471.2 kB / 489.3 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005944/0.4001, allocations: 6.693 MB / 496 MB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001673/0.4017, allocations: 135.8 kB / 496.1 MB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.4019, allocations: 83.98 kB / 496.2 MB, free: 6.719 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * 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: 3 * 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001656/0.4036, allocations: 0.9342 MB / 497.1 MB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004794/0.404, allocations: 213.3 kB / 497.3 MB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004214/0.4083, allocations: 2.602 MB / 499.9 MB, free: 2.918 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.4083, allocations: 16.11 kB / 499.9 MB, free: 2.902 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.4083, allocations: 7.938 kB / 499.9 MB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.4083, allocations: 7.969 kB / 499.9 MB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/0.4184, allocations: 5.814 MB / 0.4939 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.178e-06/0.4184, allocations: 4 kB / 0.4939 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.4196, allocations: 292 kB / 0.4942 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009463/0.4206, allocations: 407 kB / 0.4946 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/0.4207, allocations: 39.98 kB / 0.4946 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007152/0.4279, allocations: 8.268 MB / 0.5027 GB, free: 3.355 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.4279, allocations: 7.938 kB / 0.5027 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005749/0.4336, allocations: 3.831 MB / 0.5064 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/0.4351, allocations: 486.2 kB / 0.5069 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004534/0.4356, allocations: 39.94 kB / 0.5069 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.4368, allocations: 99.81 kB / 0.507 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/0.437, allocations: 109.1 kB / 0.5071 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.4371, allocations: 51.92 kB / 0.5072 GB, free: 14.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002697/0.4398, allocations: 1.386 MB / 0.5085 GB, free: 13.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.92e-07/0.4398, allocations: 0 / 0.5085 GB, free: 13.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002465/0.4423, allocations: 0.5587 MB / 0.5091 GB, free: 12.66 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * 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 {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.006101/0.4484, allocations: 4.499 MB / 0.5135 GB, free: 8.047 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004098/0.4525, allocations: 2.64 MB / 0.5161 GB, free: 5.348 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.4526, allocations: 0 / 0.5161 GB, free: 5.348 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/0.4548, allocations: 1.577 MB / 0.5176 GB, free: 3.723 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/0.4578, allocations: 0.5449 MB / 0.5181 GB, free: 3.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.227/0.6849, allocations: 22.04 MB / 0.5396 GB, free: 129.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001305/0.6862, allocations: 2.248 MB / 0.5418 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001295/0.6875, allocations: 0.5275 MB / 0.5424 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.6886, allocations: 1.191 MB / 0.5435 GB, free: 128.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.373e-06/0.6886, allocations: 0 / 0.5435 GB, free: 128.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.677/3.366, allocations: 55.03 MB / 0.5973 GB, free: 79.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.71/23.08, allocations: 11.64 kB / 0.5973 GB, free: 79.76 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches