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.001083/0.001083, allocations: 103.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001373, allocations: 63.95 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08702/0.08841, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.0131/0.1016, allocations: 11.91 MB / 369.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1482/0.2497, allocations: 4.037 MB / 373.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001315/0.2511, allocations: 82.31 kB / 373.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001799/0.2529, allocations: 0.8873 MB / 374.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00214/0.2551, allocations: 0.9681 MB / 375.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.2561, allocations: 0.5616 MB / 376 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00295/0.2591, allocations: 3.391 MB / 379.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002988/0.2621, allocations: 3.091 MB / 382.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001949/0.264, allocations: 1.573 MB / 384.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002299/0.2663, allocations: 2.047 MB / 386.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006345/0.267, allocations: 437 kB / 386.6 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.2683, allocations: 0.5417 MB / 387.1 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.2694, allocations: 1.265 MB / 388.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001908/0.2714, allocations: 1.94 MB / 390.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004043/0.2754, allocations: 5.602 MB / 395.9 MB, free: 384 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2754, allocations: 0 / 395.9 MB, free: 384 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2754, allocations: 3.938 kB / 395.9 MB, free: 380 kB / 302.1 MB Notification: Performance of Transformations before backend: time 7.907e-05/0.2755, allocations: 4 kB / 395.9 MB, free: 376 kB / 302.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.007514/0.2831, allocations: 3.943 MB / 399.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.2831, allocations: 13.14 kB / 399.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005137/0.2836, allocations: 422 kB / 400.3 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001102/0.2847, allocations: 418 kB / 400.7 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00317/0.2879, allocations: 2.066 MB / 402.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.2881, allocations: 231.4 kB / 403 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004097/0.2885, allocations: 300 kB / 403.3 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005808/0.2943, allocations: 3.845 MB / 407.1 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-05/0.2944, allocations: 7.906 kB / 407.1 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003315/0.2947, allocations: 128 kB / 407.3 MB, free: 7.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/0.2949, allocations: 153.7 kB / 407.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005218/0.3001, allocations: 3.259 MB / 410.7 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0173/0.3174, allocations: 12.15 MB / 422.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.3199, allocations: 1.946 MB / 424.8 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001847/0.3217, allocations: 1.161 MB / 425.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000291/0.322, allocations: 216.7 kB / 426.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3221, allocations: 43.88 kB / 426.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 4.319e-06/0.3221, allocations: 7.984 kB / 426.2 MB, free: 4 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01305/0.3351, allocations: 7.015 MB / 433.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.3352, allocations: 64.72 kB / 433.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002657/0.3379, allocations: 2.032 MB / 435.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.873e-05/0.338, allocations: 53.7 kB / 435.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009468/0.3389, allocations: 1.463 MB / 436.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003974/0.3393, allocations: 0.5306 MB / 437.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005231/0.3399, allocations: 347.2 kB / 437.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.337e-05/0.34, allocations: 317 kB / 438 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.3413, allocations: 0.8706 MB / 438.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.343, allocations: 1.451 MB / 440.3 MB, free: 5.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00315/0.3461, allocations: 2.502 MB / 442.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.3462, allocations: 12 kB / 442.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004575/0.3507, allocations: 3.012 MB / 445.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3508, allocations: 12 kB / 445.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.3508, allocations: 20.5 kB / 445.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008671/0.3517, allocations: 392.5 kB / 446.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.3534, allocations: 471.2 kB / 446.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005952/0.3593, allocations: 6.694 MB / 453.4 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.3608, allocations: 139.6 kB / 453.6 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/0.361, allocations: 87.94 kB / 453.6 MB, free: 7.402 MB / 366.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.001481/0.3625, allocations: 0.9421 MB / 454.6 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000392/0.3629, allocations: 213.4 kB / 454.8 MB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004307/0.3672, allocations: 2.586 MB / 457.4 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.3672, allocations: 19.98 kB / 457.4 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.3673, allocations: 4 kB / 457.4 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.3673, allocations: 7.969 kB / 457.4 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009701/0.377, allocations: 5.852 MB / 463.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.377, allocations: 11.97 kB / 463.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.3783, allocations: 291.5 kB / 463.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001018/0.3793, allocations: 411.2 kB / 464 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.3794, allocations: 35.98 kB / 464 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007181/0.3866, allocations: 8.263 MB / 472.3 MB, free: 4.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.962e-06/0.3866, allocations: 7.938 kB / 472.3 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005533/0.3922, allocations: 3.839 MB / 476.1 MB, free: 108 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.3932, allocations: 478.5 kB / 476.6 MB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004008/0.3936, allocations: 35.98 kB / 476.6 MB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.3948, allocations: 96.02 kB / 476.7 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.395, allocations: 117.1 kB / 476.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-05/0.3951, allocations: 51.92 kB / 476.9 MB, free: 15.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002177/0.3973, allocations: 1.386 MB / 478.2 MB, free: 13.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3973, allocations: 0 / 478.2 MB, free: 13.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002073/0.3994, allocations: 0.5625 MB / 478.8 MB, free: 13.35 MB / 398.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.005964/0.4054, allocations: 4.496 MB / 483.3 MB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006205/0.4116, allocations: 3.551 MB / 486.9 MB, free: 5.141 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4116, allocations: 8 kB / 486.9 MB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002127/0.4138, allocations: 1.567 MB / 488.4 MB, free: 3.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002876/0.4167, allocations: 0.5543 MB / 489 MB, free: 2.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03456/0.4512, allocations: 24.73 MB / 0.5017 GB, free: 8.129 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002411/0.4537, allocations: 2.263 MB / 0.5039 GB, free: 5.836 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001739/0.4554, allocations: 0.526 MB / 0.5044 GB, free: 5.305 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001591/0.457, allocations: 1.19 MB / 0.5056 GB, free: 4.113 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4571, allocations: 7.938 kB / 0.5056 GB, free: 4.105 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2409/0.6979, allocations: 53.32 MB / 0.5576 GB, free: 131.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.998/10.7, allocations: 8.5 kB / 0.5576 GB, free: 131.6 MB / 446.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