Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",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.001238/0.001238, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001208/0.001208, allocations: 183.1 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 51.92 kB / 328.1 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08845/0.09014, allocations: 46.61 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2187/0.3089, allocations: 30.24 MB / 404.9 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02317/0.3321, allocations: 8.647 MB / 413.6 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007501/0.3397, allocations: 165.8 kB / 413.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01355/0.3533, allocations: 4.899 MB / 418.6 MB, free: 172 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01226/0.3656, allocations: 2.944 MB / 421.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006065/0.3717, allocations: 1.615 MB / 423.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01548/0.3872, allocations: 8.708 MB / 431.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02075/0.408, allocations: 12.84 MB / 444.7 MB, free: 9.805 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008944/0.4169, allocations: 4.215 MB / 448.9 MB, free: 5.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008888/0.4259, allocations: 4.733 MB / 453.7 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003538/0.4295, allocations: 1.164 MB / 454.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00659/0.4361, allocations: 1.515 MB / 456.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004185/0.4403, allocations: 2.416 MB / 458.8 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01027/0.4506, allocations: 4.669 MB / 463.4 MB, free: 7.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02384/0.4745, allocations: 15.76 MB / 479.2 MB, free: 7.227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/0.4745, allocations: 4 kB / 479.2 MB, free: 7.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4746, allocations: 0 / 479.2 MB, free: 7.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004841/0.475, allocations: 0 / 479.2 MB, free: 7.223 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03395/0.509, allocations: 9.936 MB / 489.1 MB, free: 13.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.5091, allocations: 12.03 kB / 489.1 MB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004562/0.5137, allocations: 1.145 MB / 490.3 MB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03039/0.5441, allocations: 5.317 MB / 495.6 MB, free: 6.684 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01068/0.5548, allocations: 4.713 MB / 0.4886 GB, free: 1.891 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005321/0.5554, allocations: 0.5338 MB / 0.4891 GB, free: 1.355 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002465/0.5579, allocations: 0.7069 MB / 0.4898 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02854/0.5864, allocations: 11.33 MB / 0.5009 GB, free: 5.242 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003202/0.5868, allocations: 15.89 kB / 0.5009 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002123/0.5889, allocations: 300 kB / 0.5012 GB, free: 4.934 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005243/0.5895, allocations: 443 kB / 0.5016 GB, free: 4.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02475/0.6142, allocations: 10.82 MB / 0.5122 GB, free: 9.668 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0685/0.6828, allocations: 37.68 MB / 0.549 GB, free: 2.867 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2171/0.8999, allocations: 28.1 MB / 0.5764 GB, free: 115.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005212/0.9052, allocations: 2.669 MB / 0.579 GB, free: 115.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01388/0.9191, allocations: 7.916 MB / 0.5867 GB, free: 111.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.9191, allocations: 61.28 kB / 0.5868 GB, free: 111.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.358e-06/0.9192, allocations: 1.594 kB / 0.5868 GB, free: 111.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.01968/0.9388, allocations: 10.47 MB / 0.597 GB, free: 107.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001576/0.9405, allocations: 2.002 MB / 0.599 GB, free: 105.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006023/0.9465, allocations: 3.828 MB / 0.6027 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004215/0.947, allocations: 67.98 kB / 0.6028 GB, free: 103.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/0.9489, allocations: 3.682 MB / 0.6064 GB, free: 101.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007206/0.9496, allocations: 0.8667 MB / 0.6072 GB, free: 100.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/0.9508, allocations: 0.957 MB / 0.6082 GB, free: 100.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.385e-05/0.9508, allocations: 301.1 kB / 0.6084 GB, free: 99.91 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002344/0.9532, allocations: 1.887 MB / 0.6103 GB, free: 99.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003048/0.9562, allocations: 4.398 MB / 0.6146 GB, free: 95.09 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00585/0.9621, allocations: 6.783 MB / 0.6212 GB, free: 89.62 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.797e-05/0.9622, allocations: 31.34 kB / 0.6212 GB, free: 89.62 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01004/0.9722, allocations: 6.991 MB / 0.6281 GB, free: 85.52 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.395e-05/0.9723, allocations: 44.22 kB / 0.6281 GB, free: 85.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/0.9724, allocations: 88 kB / 0.6282 GB, free: 85.39 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001768/0.9742, allocations: 0.7399 MB / 0.6289 GB, free: 84.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003296/0.9775, allocations: 1.118 MB / 0.63 GB, free: 83.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00578/0.9833, allocations: 5.648 MB / 0.6355 GB, free: 78.03 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004049/0.9874, allocations: 315.4 kB / 0.6358 GB, free: 77.72 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005817/0.988, allocations: 273.8 kB / 0.6361 GB, free: 77.46 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * 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 {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00404/0.9921, allocations: 2.522 MB / 0.6385 GB, free: 74.92 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009967/0.9931, allocations: 409.3 kB / 0.6389 GB, free: 74.52 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006273/0.9993, allocations: 4.268 MB / 0.6431 GB, free: 70.23 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.657e-05/0.9994, allocations: 24 kB / 0.6431 GB, free: 70.21 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.9994, allocations: 12 kB / 0.6431 GB, free: 70.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.9994, allocations: 11.95 kB / 0.6431 GB, free: 70.18 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02106/1.021, allocations: 14.29 MB / 0.6571 GB, free: 55.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/1.021, allocations: 15.94 kB / 0.6571 GB, free: 55.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/1.022, allocations: 479.2 kB / 0.6576 GB, free: 55.23 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001937/1.024, allocations: 0.6859 MB / 0.6582 GB, free: 54.54 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001961/1.024, allocations: 71.97 kB / 0.6583 GB, free: 54.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00738/1.032, allocations: 7.504 MB / 0.6656 GB, free: 46.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001294/1.033, allocations: 1.959 MB / 0.6675 GB, free: 44.58 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008553/1.042, allocations: 6.762 MB / 0.6742 GB, free: 37.54 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002004/1.044, allocations: 0.8107 MB / 0.6749 GB, free: 36.71 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007412/1.045, allocations: 55.98 kB / 0.675 GB, free: 36.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001898/1.046, allocations: 171.9 kB / 0.6752 GB, free: 36.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004222/1.047, allocations: 217.4 kB / 0.6754 GB, free: 36.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/1.047, allocations: 95.97 kB / 0.6755 GB, free: 36.18 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003401/1.05, allocations: 2.509 MB / 0.6779 GB, free: 33.69 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.051, allocations: 0 / 0.6779 GB, free: 33.69 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006078/1.057, allocations: 1.293 MB / 0.6792 GB, free: 32.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.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 (241): * Single equations (assignments): 238 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009356/1.066, allocations: 7.438 MB / 0.6864 GB, free: 24.67 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007034/1.073, allocations: 5.165 MB / 0.6915 GB, free: 19.45 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/1.073, allocations: 4.125 kB / 0.6915 GB, free: 19.45 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003452/1.077, allocations: 2.432 MB / 0.6939 GB, free: 16.98 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005371/1.082, allocations: 0.9764 MB / 0.6948 GB, free: 16 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2643/1.346, allocations: 46.24 MB / 0.74 GB, free: 163.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006129/1.352, allocations: 4.493 MB / 0.7444 GB, free: 162.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004083/1.357, allocations: 1.359 MB / 0.7457 GB, free: 162.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003461/1.36, allocations: 2.539 MB / 0.7482 GB, free: 162.5 MB / 0.4981 GB Notification: Performance of SimCode: time 9.92e-07/1.36, allocations: 0 / 0.7482 GB, free: 162.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1449/1.505, allocations: 103.9 MB / 0.8496 GB, free: 78.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.38/22.88, allocations: 8.828 kB / 0.8496 GB, free: 78.66 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches