Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.38 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08148/0.08264, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1884/0.2711, allocations: 41.76 MB / 399.4 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02596/0.2971, allocations: 11.4 MB / 410.8 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008903/0.306, allocations: 299.9 kB / 411.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.019/0.3251, allocations: 7.912 MB / 419 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01286/0.338, allocations: 3.574 MB / 422.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007466/0.3455, allocations: 2.32 MB / 424.9 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01709/0.3626, allocations: 12.45 MB / 437.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03776/0.4004, allocations: 23.66 MB / 461 MB, free: 4.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0094/0.4098, allocations: 6.334 MB / 467.3 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01155/0.4214, allocations: 7.272 MB / 474.6 MB, free: 7.012 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005033/0.4264, allocations: 1.824 MB / 476.4 MB, free: 5.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006721/0.4332, allocations: 2.277 MB / 478.7 MB, free: 2.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005033/0.4382, allocations: 3.647 MB / 482.3 MB, free: 15.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01152/0.4498, allocations: 7.101 MB / 489.4 MB, free: 8.125 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02852/0.4783, allocations: 23.9 MB / 0.5013 GB, free: 156 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.4784, allocations: 0 / 0.5013 GB, free: 156 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4784, allocations: 0 / 0.5013 GB, free: 156 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006921/0.4791, allocations: 0 / 0.5013 GB, free: 156 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04012/0.5192, allocations: 14.27 MB / 0.5152 GB, free: 1.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.5193, allocations: 12.03 kB / 0.5152 GB, free: 1.758 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004124/0.5234, allocations: 1.749 MB / 0.517 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0297/0.5531, allocations: 5.188 MB / 0.522 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.016/0.5692, allocations: 7.519 MB / 0.5294 GB, free: 3.191 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001026/0.5702, allocations: 0.8387 MB / 0.5302 GB, free: 2.352 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003998/0.5743, allocations: 1.09 MB / 0.5312 GB, free: 1.262 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3254/0.8997, allocations: 16.6 MB / 0.5475 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002508/0.9, allocations: 9.844 kB / 0.5475 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001301/0.9013, allocations: 464.6 kB / 0.5479 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005159/0.9018, allocations: 0.5753 MB / 0.5485 GB, free: 123.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0245/0.9263, allocations: 14.75 MB / 0.5629 GB, free: 117.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07385/1, allocations: 57.9 MB / 0.6194 GB, free: 60.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01534/1.016, allocations: 21.15 MB / 0.6401 GB, free: 36.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004528/1.02, allocations: 3.331 MB / 0.6433 GB, free: 33.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01315/1.033, allocations: 9.975 MB / 0.6531 GB, free: 23.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/1.033, allocations: 69.5 kB / 0.6531 GB, free: 23.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=313): time 5.02e-06/1.033, allocations: 0 / 0.6531 GB, free: 23.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=340): time 0.02765/1.061, allocations: 16.68 MB / 0.6694 GB, free: 6.195 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/1.061, allocations: 112.4 kB / 0.6695 GB, free: 6.066 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005766/1.067, allocations: 5.179 MB / 0.6746 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003598/1.067, allocations: 77.7 kB / 0.6747 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00308/1.07, allocations: 5.193 MB / 0.6797 GB, free: 11.62 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001234/1.072, allocations: 1.196 MB / 0.6809 GB, free: 10.43 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002081/1.074, allocations: 1.254 MB / 0.6821 GB, free: 9.164 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.223e-05/1.074, allocations: 305.1 kB / 0.6824 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004108/1.078, allocations: 2.632 MB / 0.685 GB, free: 6.227 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006161/1.084, allocations: 5.44 MB / 0.6903 GB, free: 15.45 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01093/1.095, allocations: 8.499 MB / 0.6986 GB, free: 5.629 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.358e-05/1.095, allocations: 28 kB / 0.6986 GB, free: 5.602 MB / 478.1 MB Notification: Performance of matching and sorting (n=816) (initialization): time 0.01563/1.111, allocations: 9.221 MB / 0.7076 GB, free: 12.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.305e-05/1.111, allocations: 48 kB / 0.7077 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/1.111, allocations: 92.56 kB / 0.7078 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002331/1.113, allocations: 0.9179 MB / 0.7087 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005016/1.118, allocations: 1.474 MB / 0.7101 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1765/1.295, allocations: 10.52 MB / 0.7204 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005144/1.3, allocations: 407.8 kB / 0.7208 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006094/1.301, allocations: 336 kB / 0.7211 GB, free: 152.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 431 * 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 (767): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,26,67.2%), (2,8,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005599/1.306, allocations: 3.749 MB / 0.7248 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.307, allocations: 0.5053 MB / 0.7252 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009677/1.317, allocations: 5.883 MB / 0.731 GB, free: 150.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004805/1.322, allocations: 3.043 MB / 0.734 GB, free: 149.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.415e-05/1.322, allocations: 10.69 kB / 0.734 GB, free: 149.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.185e-05/1.322, allocations: 19.2 kB / 0.734 GB, free: 149.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02228/1.344, allocations: 14.57 MB / 0.7482 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/1.344, allocations: 6.562 kB / 0.7482 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002386/1.347, allocations: 0.5899 MB / 0.7488 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002132/1.349, allocations: 0.8947 MB / 0.7497 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002121/1.349, allocations: 82.86 kB / 0.7498 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/1.361, allocations: 14.05 MB / 0.7635 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.361, allocations: 5.562 kB / 0.7635 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/1.372, allocations: 8.488 MB / 0.7718 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/1.374, allocations: 0.9778 MB / 0.7727 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006697/1.375, allocations: 72.12 kB / 0.7728 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002333/1.377, allocations: 196.5 kB / 0.773 GB, free: 128 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005088/1.377, allocations: 257.8 kB / 0.7732 GB, free: 128 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001935/1.378, allocations: 101.7 kB / 0.7733 GB, free: 127.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004199/1.382, allocations: 3.443 MB / 0.7767 GB, free: 126.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.7e-07/1.382, allocations: 0 / 0.7767 GB, free: 126.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00552/1.387, allocations: 1.779 MB / 0.7784 GB, free: 126.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (298): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,8,100.0%), (1,4,100.0%), (1,8,100.0%), (3,4,77.8%), (8,26,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01145/1.399, allocations: 9.227 MB / 0.7874 GB, free: 119.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01512/1.414, allocations: 8.708 MB / 0.7959 GB, free: 111.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.414, allocations: 4.375 kB / 0.7959 GB, free: 111.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004845/1.419, allocations: 3.381 MB / 0.7992 GB, free: 107.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005183/1.424, allocations: 1.186 MB / 0.8004 GB, free: 106.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07742/1.502, allocations: 76.41 MB / 0.875 GB, free: 22.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005421/1.507, allocations: 6.564 MB / 0.8814 GB, free: 15.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005291/1.512, allocations: 1.834 MB / 0.8832 GB, free: 14.06 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004575/1.517, allocations: 4.054 MB / 0.8872 GB, free: 10 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/1.517, allocations: 0 / 0.8872 GB, free: 10 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3433/1.86, allocations: 141.9 MB / 1.026 GB, free: 52.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/14.18, allocations: 24.53 kB / 1.026 GB, free: 52.66 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches