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.001847/0.001847, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.002018/0.002018, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.214/2.214, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.002408/0.002408, allocations: 56.14 kB / 280.8 MB, free: 3.043 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1453, allocations: 46.62 MB / 327.4 MB, free: 4.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.05585/0.2012, allocations: 30.25 MB / 357.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03022/0.2315, allocations: 8.635 MB / 366.3 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009147/0.2407, allocations: 167.5 kB / 366.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01923/0.26, allocations: 4.895 MB / 371.4 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01574/0.2758, allocations: 2.945 MB / 374.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008793/0.2846, allocations: 1.606 MB / 375.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2982/0.5829, allocations: 8.644 MB / 384.5 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03606/0.619, allocations: 12.89 MB / 397.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00972/0.6288, allocations: 4.209 MB / 401.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01072/0.6395, allocations: 4.747 MB / 406.4 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004602/0.6442, allocations: 1.165 MB / 407.6 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007864/0.6521, allocations: 1.532 MB / 409.1 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00472/0.6569, allocations: 2.418 MB / 411.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009826/0.6668, allocations: 4.663 MB / 416.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02801/0.6948, allocations: 15.67 MB / 431.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.227e-05/0.6949, allocations: 0 / 431.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.6949, allocations: 0 / 431.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005022/0.6955, allocations: 4 kB / 431.8 MB, free: 3.848 MB / 334.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.05217/0.7477, allocations: 9.782 MB / 441.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.554e-05/0.7478, allocations: 12.03 kB / 441.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005649/0.7534, allocations: 1.143 MB / 442.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05738/0.8108, allocations: 5.257 MB / 448 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01688/0.8278, allocations: 4.668 MB / 452.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000949/0.8288, allocations: 0.5375 MB / 453.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004531/0.8333, allocations: 0.7093 MB / 453.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05033/0.8837, allocations: 11.32 MB / 465.3 MB, free: 2.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004669/0.8842, allocations: 15.81 kB / 465.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003527/0.8878, allocations: 302.1 kB / 465.6 MB, free: 2.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008294/0.8886, allocations: 443 kB / 466 MB, free: 1.836 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04011/0.9288, allocations: 10.81 MB / 476.8 MB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1072/1.036, allocations: 38 MB / 0.5028 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03764/1.074, allocations: 28.11 MB / 0.5302 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2701/1.344, allocations: 2.642 MB / 0.5328 GB, free: 152.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02482/1.369, allocations: 7.932 MB / 0.5405 GB, free: 149.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.587e-05/1.369, allocations: 59.03 kB / 0.5406 GB, free: 149 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 1.136e-05/1.369, allocations: 0 / 0.5406 GB, free: 149 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.03598/1.405, allocations: 10.36 MB / 0.5507 GB, free: 144.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002593/1.408, allocations: 2.018 MB / 0.5527 GB, free: 142.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01028/1.418, allocations: 3.823 MB / 0.5564 GB, free: 141.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005424/1.419, allocations: 61.55 kB / 0.5565 GB, free: 141.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003112/1.422, allocations: 3.548 MB / 0.5599 GB, free: 138.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00132/1.423, allocations: 0.8376 MB / 0.5608 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002963/1.426, allocations: 0.9544 MB / 0.5617 GB, free: 137.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.123e-05/1.426, allocations: 301.1 kB / 0.562 GB, free: 137.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005089/1.431, allocations: 1.897 MB / 0.5638 GB, free: 136.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00669/1.438, allocations: 4.391 MB / 0.5681 GB, free: 132.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/1.449, allocations: 6.784 MB / 0.5747 GB, free: 126.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-05/1.449, allocations: 22.78 kB / 0.5748 GB, free: 126.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.02003/1.469, allocations: 6.981 MB / 0.5816 GB, free: 123.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/1.47, allocations: 47.88 kB / 0.5816 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002157/1.47, allocations: 88 kB / 0.5817 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003473/1.473, allocations: 0.7389 MB / 0.5824 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006796/1.48, allocations: 1.122 MB / 0.5835 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01148/1.492, allocations: 5.633 MB / 0.589 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007168/1.499, allocations: 318.9 kB / 0.5893 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001027/1.5, allocations: 272 kB / 0.5896 GB, free: 115.8 MB / 446.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.006378/1.506, allocations: 2.514 MB / 0.592 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001469/1.508, allocations: 387.3 kB / 0.5924 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01212/1.52, allocations: 4.283 MB / 0.5966 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.819e-05/1.52, allocations: 24 kB / 0.5966 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.321e-05/1.52, allocations: 4 kB / 0.5966 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.997e-05/1.52, allocations: 11.95 kB / 0.5966 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03828/1.559, allocations: 14.3 MB / 0.6106 GB, free: 94.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.807e-05/1.559, allocations: 12 kB / 0.6106 GB, free: 94.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003077/1.562, allocations: 482.5 kB / 0.6111 GB, free: 93.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003279/1.565, allocations: 0.6932 MB / 0.6117 GB, free: 92.94 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004829/1.566, allocations: 67.98 kB / 0.6118 GB, free: 92.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01287/1.578, allocations: 7.504 MB / 0.6191 GB, free: 85.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00211/1.581, allocations: 1.951 MB / 0.621 GB, free: 82.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01457/1.595, allocations: 6.742 MB / 0.6276 GB, free: 75.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002851/1.598, allocations: 0.7851 MB / 0.6284 GB, free: 75.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001203/1.599, allocations: 63.98 kB / 0.6285 GB, free: 75.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003561/1.603, allocations: 163.9 kB / 0.6286 GB, free: 74.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006613/1.604, allocations: 226.1 kB / 0.6288 GB, free: 74.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002843/1.604, allocations: 87.97 kB / 0.6289 GB, free: 74.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005825/1.61, allocations: 2.513 MB / 0.6314 GB, free: 72.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.41e-07/1.61, allocations: 4 kB / 0.6314 GB, free: 72.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008486/1.618, allocations: 1.288 MB / 0.6326 GB, free: 70.85 MB / 446.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.01534/1.634, allocations: 7.422 MB / 0.6399 GB, free: 63.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02167/1.655, allocations: 7.005 MB / 0.6467 GB, free: 56.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.72e-05/1.655, allocations: 4.062 kB / 0.6467 GB, free: 56.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006383/1.662, allocations: 2.415 MB / 0.6491 GB, free: 53.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009294/1.671, allocations: 0.9912 MB / 0.65 GB, free: 52.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3974/2.069, allocations: 55.42 MB / 0.7042 GB, free: 137.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01004/2.079, allocations: 4.505 MB / 0.7086 GB, free: 135.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008472/2.087, allocations: 1.357 MB / 0.7099 GB, free: 135.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006655/2.094, allocations: 2.544 MB / 0.7124 GB, free: 133.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.733e-06/2.094, allocations: 0 / 0.7124 GB, free: 133.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2581/2.352, allocations: 106.3 MB / 0.8162 GB, free: 38.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.1/22.46, allocations: 12.67 kB / 0.8162 GB, free: 38.05 MB / 446.1 MB (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