Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001391/0.001391, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00163/0.00163, allocations: 202 kB / 18.73 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.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2367, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01311/0.2498, allocations: 11.92 MB / 420.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007492/0.2574, allocations: 4.038 MB / 424.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001918/0.2593, allocations: 79.62 kB / 424.8 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002544/0.2619, allocations: 0.9471 MB / 425.8 MB, free: 480 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003322/0.2653, allocations: 1.018 MB / 426.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.2669, allocations: 0.5578 MB / 427.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004271/0.2712, allocations: 3.406 MB / 430.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004205/0.2755, allocations: 3.088 MB / 433.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002388/0.2779, allocations: 1.592 MB / 435.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003268/0.2812, allocations: 2.043 MB / 437.5 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001082/0.2823, allocations: 436 kB / 437.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001771/0.284, allocations: 0.5545 MB / 438.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001674/0.2857, allocations: 1.251 MB / 439.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003152/0.2889, allocations: 1.944 MB / 441.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006538/0.2954, allocations: 5.706 MB / 447.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.2955, allocations: 8 kB / 447.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2955, allocations: 3.938 kB / 447.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001402/0.2956, allocations: 0 / 447.4 MB, free: 10.73 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.008122/0.3038, allocations: 4.033 MB / 451.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3038, allocations: 8.031 kB / 451.4 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005812/0.3044, allocations: 430 kB / 451.8 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.3056, allocations: 434.5 kB / 452.3 MB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003612/0.3092, allocations: 2.147 MB / 454.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.3094, allocations: 230 kB / 454.6 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000434/0.3098, allocations: 295.9 kB / 454.9 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006083/0.3159, allocations: 3.847 MB / 458.8 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.466e-05/0.316, allocations: 11.89 kB / 458.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002473/0.3163, allocations: 116 kB / 458.9 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.3164, allocations: 153.7 kB / 459 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005261/0.3217, allocations: 3.247 MB / 462.3 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/0.3402, allocations: 12.06 MB / 474.3 MB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.3426, allocations: 1.948 MB / 476.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.3444, allocations: 1.141 MB / 477.4 MB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003027/0.3447, allocations: 219.5 kB / 477.6 MB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.3448, allocations: 47.88 kB / 477.7 MB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 3.387e-06/0.3448, allocations: 0 / 477.7 MB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01325/0.358, allocations: 7.056 MB / 484.8 MB, free: 4.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.3581, allocations: 68.72 kB / 484.8 MB, free: 4.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003014/0.3611, allocations: 2.036 MB / 486.9 MB, free: 2.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001992/0.3613, allocations: 57.7 kB / 486.9 MB, free: 2.254 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009849/0.3623, allocations: 1.495 MB / 488.4 MB, free: 0.7461 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004497/0.3628, allocations: 0.5616 MB / 489 MB, free: 184 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005264/0.3633, allocations: 351.4 kB / 489.3 MB, free: 15.83 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3634, allocations: 305.6 kB / 489.6 MB, free: 15.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.3648, allocations: 0.8745 MB / 490.5 MB, free: 14.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001709/0.3665, allocations: 1.454 MB / 491.9 MB, free: 12.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003227/0.3697, allocations: 2.506 MB / 494.4 MB, free: 10.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.949e-05/0.3698, allocations: 11.94 kB / 494.5 MB, free: 10.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004839/0.3746, allocations: 3.027 MB / 497.5 MB, free: 7.113 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.3747, allocations: 15.98 kB / 497.5 MB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.167e-05/0.3747, allocations: 23.94 kB / 497.5 MB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008994/0.3756, allocations: 383.6 kB / 497.9 MB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.3772, allocations: 467.2 kB / 498.4 MB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00601/0.3833, allocations: 6.705 MB / 0.4932 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.385, allocations: 139.8 kB / 0.4934 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001861/0.3852, allocations: 83.98 kB / 0.4934 GB, free: 14.89 MB / 430.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.001513/0.3867, allocations: 0.9344 MB / 0.4943 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004231/0.3872, allocations: 226.5 kB / 0.4946 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004203/0.3914, allocations: 2.602 MB / 0.4971 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.3914, allocations: 16 kB / 0.4971 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.3914, allocations: 4 kB / 0.4971 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.3915, allocations: 7.969 kB / 0.4971 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009449/0.4009, allocations: 5.822 MB / 0.5028 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.401, allocations: 4 kB / 0.5028 GB, free: 5.074 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.4022, allocations: 291.6 kB / 0.5031 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009781/0.4032, allocations: 407.4 kB / 0.5035 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.4033, allocations: 39.98 kB / 0.5035 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007222/0.4105, allocations: 8.266 MB / 0.5116 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.4106, allocations: 4 kB / 0.5116 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005726/0.4163, allocations: 3.851 MB / 0.5154 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.4173, allocations: 499.4 kB / 0.5158 GB, free: 7.051 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003125/0.4177, allocations: 32 kB / 0.5159 GB, free: 7.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.4188, allocations: 100 kB / 0.516 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002483/0.419, allocations: 109.1 kB / 0.5161 GB, free: 6.816 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.4191, allocations: 59.86 kB / 0.5161 GB, free: 6.758 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002052/0.4212, allocations: 1.382 MB / 0.5175 GB, free: 5.355 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4212, allocations: 3.938 kB / 0.5175 GB, free: 5.352 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001981/0.4232, allocations: 0.5624 MB / 0.518 GB, free: 4.789 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.005956/0.4291, allocations: 4.49 MB / 0.5224 GB, free: 192 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003871/0.433, allocations: 2.641 MB / 0.525 GB, free: 13.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.4331, allocations: 8.125 kB / 0.525 GB, free: 13.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002103/0.4352, allocations: 1.573 MB / 0.5265 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002617/0.4378, allocations: 0.5573 MB / 0.5271 GB, free: 11.31 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2119/0.6497, allocations: 22.16 MB / 0.5487 GB, free: 120.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/0.6512, allocations: 2.244 MB / 0.5509 GB, free: 119.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001372/0.6526, allocations: 0.5348 MB / 0.5514 GB, free: 119.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/0.6538, allocations: 1.189 MB / 0.5526 GB, free: 118.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6538, allocations: 3.844 kB / 0.5526 GB, free: 118.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08679/0.7406, allocations: 54.48 MB / 0.6058 GB, free: 65.98 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.36, allocations: 15.31 kB / 0.6058 GB, free: 65.97 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_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_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.csv","/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches