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.001033/0.001033, allocations: 113.2 kB / 17.73 MB, free: 5.309 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.001031/0.001031, allocations: 188.2 kB / 18.66 MB, free: 4.383 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.322/1.322, allocations: 205.1 MB / 224.5 MB, free: 12.26 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.001157/0.001157, allocations: 55.92 kB / 328.1 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08126/0.08243, allocations: 46.62 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1955/0.2779, allocations: 30.24 MB / 404.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02108/0.2991, allocations: 8.637 MB / 413.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005924/0.305, allocations: 164.9 kB / 413.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01189/0.317, allocations: 4.967 MB / 418.7 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009989/0.327, allocations: 3.023 MB / 421.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005026/0.3321, allocations: 1.614 MB / 423.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01243/0.3445, allocations: 8.711 MB / 432 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01873/0.3633, allocations: 12.84 MB / 444.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006629/0.37, allocations: 4.222 MB / 449.1 MB, free: 5.422 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007161/0.3772, allocations: 4.745 MB / 453.8 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002912/0.3801, allocations: 1.16 MB / 455 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004958/0.3851, allocations: 1.523 MB / 456.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003386/0.3885, allocations: 2.408 MB / 458.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007826/0.3964, allocations: 4.669 MB / 463.6 MB, free: 6.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01903/0.4154, allocations: 15.77 MB / 479.4 MB, free: 7.059 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4155, allocations: 0 / 479.4 MB, free: 7.059 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4155, allocations: 3.938 kB / 479.4 MB, free: 7.055 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003386/0.4158, allocations: 0 / 479.4 MB, free: 7.055 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.02707/0.4429, allocations: 9.936 MB / 489.3 MB, free: 13.01 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.443, allocations: 8.031 kB / 489.3 MB, free: 13 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002467/0.4454, allocations: 1.152 MB / 490.5 MB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02928/0.4747, allocations: 5.313 MB / 495.8 MB, free: 6.516 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.4851, allocations: 4.709 MB / 0.4888 GB, free: 1.727 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004599/0.4856, allocations: 0.5299 MB / 0.4893 GB, free: 1.195 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00234/0.488, allocations: 0.7185 MB / 0.49 GB, free: 488 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02208/0.5101, allocations: 11.32 MB / 0.501 GB, free: 5.078 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002068/0.5103, allocations: 31.83 kB / 0.5011 GB, free: 5.047 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001015/0.5113, allocations: 296 kB / 0.5013 GB, free: 4.758 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000425/0.5118, allocations: 443 kB / 0.5018 GB, free: 4.324 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0196/0.5314, allocations: 10.82 MB / 0.5123 GB, free: 9.492 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06056/0.592, allocations: 37.68 MB / 0.5491 GB, free: 2.695 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1785/0.7705, allocations: 28.09 MB / 0.5765 GB, free: 115.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004484/0.775, allocations: 2.67 MB / 0.5792 GB, free: 115.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01429/0.7893, allocations: 7.926 MB / 0.5869 GB, free: 111.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.7894, allocations: 59.06 kB / 0.587 GB, free: 111.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.338e-06/0.7894, allocations: 0 / 0.587 GB, free: 111.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.0199/0.8093, allocations: 10.46 MB / 0.5972 GB, free: 107.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00163/0.811, allocations: 2.021 MB / 0.5991 GB, free: 105.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005602/0.8166, allocations: 3.825 MB / 0.6029 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003799/0.817, allocations: 62.7 kB / 0.6029 GB, free: 103.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002362/0.8194, allocations: 3.681 MB / 0.6065 GB, free: 101.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009085/0.8203, allocations: 0.8646 MB / 0.6074 GB, free: 100.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001232/0.8216, allocations: 0.9632 MB / 0.6083 GB, free: 100.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.17e-05/0.8216, allocations: 301.1 kB / 0.6086 GB, free: 99.92 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002323/0.8239, allocations: 1.894 MB / 0.6104 GB, free: 99.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003072/0.827, allocations: 4.394 MB / 0.6147 GB, free: 95.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0059/0.8329, allocations: 6.788 MB / 0.6214 GB, free: 89.64 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.743e-05/0.8331, allocations: 23.28 kB / 0.6214 GB, free: 89.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01107/0.8441, allocations: 6.994 MB / 0.6282 GB, free: 85.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.36e-05/0.8442, allocations: 48.03 kB / 0.6283 GB, free: 85.37 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.8444, allocations: 87.75 kB / 0.6284 GB, free: 85.29 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001778/0.8461, allocations: 0.7352 MB / 0.6291 GB, free: 84.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003466/0.8496, allocations: 1.124 MB / 0.6302 GB, free: 83.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005997/0.8556, allocations: 5.638 MB / 0.6357 GB, free: 77.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004071/0.8597, allocations: 315.4 kB / 0.636 GB, free: 77.58 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005948/0.8604, allocations: 268 kB / 0.6362 GB, free: 77.32 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.003618/0.864, allocations: 2.529 MB / 0.6387 GB, free: 74.77 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000866/0.8649, allocations: 405.4 kB / 0.6391 GB, free: 74.38 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005964/0.8708, allocations: 4.274 MB / 0.6433 GB, free: 70.08 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.8709, allocations: 27.98 kB / 0.6433 GB, free: 70.05 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.8709, allocations: 12.88 kB / 0.6433 GB, free: 70.04 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.945e-05/0.8709, allocations: 11.95 kB / 0.6433 GB, free: 70.03 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02054/0.8915, allocations: 14.28 MB / 0.6573 GB, free: 55.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-05/0.8915, allocations: 12 kB / 0.6573 GB, free: 55.56 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/0.8933, allocations: 491 kB / 0.6577 GB, free: 55.08 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00186/0.8952, allocations: 0.6899 MB / 0.6584 GB, free: 54.38 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002771/0.8955, allocations: 67.98 kB / 0.6585 GB, free: 54.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00746/0.903, allocations: 7.496 MB / 0.6658 GB, free: 46.54 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001388/0.9044, allocations: 1.959 MB / 0.6677 GB, free: 44.44 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008892/0.9133, allocations: 6.766 MB / 0.6743 GB, free: 37.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002321/0.9157, allocations: 0.8067 MB / 0.6751 GB, free: 36.56 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007872/0.9165, allocations: 63.98 kB / 0.6752 GB, free: 36.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001978/0.9185, allocations: 167.9 kB / 0.6753 GB, free: 36.34 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003791/0.9189, allocations: 225.3 kB / 0.6755 GB, free: 36.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/0.919, allocations: 95.98 kB / 0.6756 GB, free: 36.02 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003173/0.9222, allocations: 2.509 MB / 0.6781 GB, free: 33.54 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.82e-07/0.9222, allocations: 0 / 0.6781 GB, free: 33.54 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00538/0.9276, allocations: 1.285 MB / 0.6793 GB, free: 32.25 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.008513/0.9361, allocations: 7.441 MB / 0.6866 GB, free: 24.52 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007023/0.9432, allocations: 5.161 MB / 0.6916 GB, free: 19.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/0.9432, allocations: 4.062 kB / 0.6916 GB, free: 19.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003255/0.9465, allocations: 2.436 MB / 0.694 GB, free: 16.82 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004844/0.9514, allocations: 0.9795 MB / 0.695 GB, free: 15.85 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2451/1.196, allocations: 46.23 MB / 0.7401 GB, free: 165.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006288/1.203, allocations: 4.495 MB / 0.7445 GB, free: 164.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004207/1.207, allocations: 1.363 MB / 0.7458 GB, free: 164.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003748/1.211, allocations: 2.542 MB / 0.7483 GB, free: 164 MB / 0.4981 GB Notification: Performance of SimCode: time 1.032e-06/1.211, allocations: 0 / 0.7483 GB, free: 164 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1431/1.354, allocations: 103.9 MB / 0.8498 GB, free: 78.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.29/22.65, allocations: 20.61 kB / 0.8498 GB, free: 78.89 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