Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001162/0.001161, 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.001235/0.001235, 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.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.00125, allocations: 59.78 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.09341, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.1812/0.2746, allocations: 17.27 MB / 374.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.2855, allocations: 5.697 MB / 380.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003504/0.2891, allocations: 104.8 kB / 380.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003909/0.293, allocations: 1.27 MB / 381.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005822/0.2989, allocations: 1.583 MB / 383.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003052/0.302, allocations: 1.099 MB / 384.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007228/0.3092, allocations: 5.196 MB / 389.8 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005548/0.3148, allocations: 4.324 MB / 394.1 MB, free: 2.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004478/0.3193, allocations: 2.175 MB / 396.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004462/0.3238, allocations: 2.625 MB / 398.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00135/0.3252, allocations: 0.6179 MB / 399.6 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003341/0.3285, allocations: 0.8617 MB / 400.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001342/0.3299, allocations: 1.432 MB / 401.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004348/0.3342, allocations: 2.65 MB / 404.5 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008548/0.3428, allocations: 8.067 MB / 412.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/0.3429, allocations: 0 / 412.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3429, allocations: 0 / 412.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002703/0.3432, allocations: 4 kB / 412.6 MB, free: 5.379 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.0157/0.3589, allocations: 5.41 MB / 418 MB, free: 15.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.3589, allocations: 8.031 kB / 418 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001319/0.3603, allocations: 0.6104 MB / 418.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005704/0.366, allocations: 1.018 MB / 419.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005756/0.3717, allocations: 2.929 MB / 422.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002512/0.372, allocations: 304 kB / 422.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007538/0.3728, allocations: 399.9 kB / 423.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008795/0.3816, allocations: 5.221 MB / 428.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.391e-05/0.3817, allocations: 8 kB / 428.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003636/0.3821, allocations: 160 kB / 428.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000156/0.3822, allocations: 176 kB / 428.8 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007651/0.3899, allocations: 4.462 MB / 433.3 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02607/0.416, allocations: 16.88 MB / 450.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007374/0.4234, allocations: 8.701 MB / 458.8 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003765/0.4272, allocations: 1.995 MB / 460.8 MB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01009/0.4373, allocations: 5.768 MB / 466.6 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.4374, allocations: 51.88 kB / 466.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=157): time 3.386e-06/0.4374, allocations: 0 / 466.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=160): time 0.01339/0.4508, allocations: 6.299 MB / 473 MB, free: 6.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.4509, allocations: 72.66 kB / 473 MB, free: 6.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004294/0.4552, allocations: 2.315 MB / 475.3 MB, free: 4.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002309/0.4554, allocations: 49.7 kB / 475.4 MB, free: 4.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001371/0.4568, allocations: 1.864 MB / 477.3 MB, free: 2.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006105/0.4574, allocations: 0.5507 MB / 477.8 MB, free: 1.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007222/0.4581, allocations: 391.6 kB / 478.2 MB, free: 1.332 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.287e-05/0.4583, allocations: 313.1 kB / 478.5 MB, free: 1.023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.4598, allocations: 0.8475 MB / 479.3 MB, free: 176 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002095/0.4619, allocations: 1.575 MB / 480.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003917/0.4659, allocations: 2.574 MB / 483.5 MB, free: 11.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.187e-05/0.4659, allocations: 8 kB / 483.5 MB, free: 11.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005322/0.4712, allocations: 2.978 MB / 486.5 MB, free: 8.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.4713, allocations: 12 kB / 486.5 MB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.855e-05/0.4713, allocations: 24 kB / 486.5 MB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004298/0.4718, allocations: 178 kB / 486.7 MB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001946/0.4737, allocations: 0.5304 MB / 487.2 MB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002418/0.4762, allocations: 2.426 MB / 489.6 MB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.4781, allocations: 119.9 kB / 489.8 MB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.4783, allocations: 99.92 kB / 489.9 MB, free: 4.824 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (266): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001945/0.4802, allocations: 1.2 MB / 491.1 MB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000625/0.4809, allocations: 245 kB / 491.3 MB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004546/0.4854, allocations: 2.531 MB / 493.8 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.4855, allocations: 16 kB / 493.8 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.4855, allocations: 8 kB / 493.8 MB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.4855, allocations: 15.97 kB / 493.9 MB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009795/0.4953, allocations: 5.896 MB / 499.8 MB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.4953, allocations: 192 / 499.8 MB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.4966, allocations: 283.6 kB / 0.4883 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009268/0.4976, allocations: 374.1 kB / 0.4887 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/0.4977, allocations: 39.98 kB / 0.4887 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007026/0.5048, allocations: 7.393 MB / 0.4959 GB, free: 2.219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5048, allocations: 0 / 0.4959 GB, free: 2.219 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005772/0.5105, allocations: 3.661 MB / 0.4995 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.5117, allocations: 0.4902 MB / 0.5 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005114/0.5122, allocations: 35.98 kB / 0.5 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.5135, allocations: 75.94 kB / 0.5001 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.5138, allocations: 121.1 kB / 0.5002 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.514, allocations: 47.98 kB / 0.5003 GB, free: 13.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002664/0.5166, allocations: 1.569 MB / 0.5018 GB, free: 12.11 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.5166, allocations: 288 / 0.5018 GB, free: 12.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002309/0.519, allocations: 0.6796 MB / 0.5024 GB, free: 11.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006171/0.5251, allocations: 4.293 MB / 0.5066 GB, free: 7.035 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006082/0.5312, allocations: 2.929 MB / 0.5095 GB, free: 4.074 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5313, allocations: 0 / 0.5095 GB, free: 4.074 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002489/0.5338, allocations: 1.473 MB / 0.5109 GB, free: 2.562 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003668/0.5374, allocations: 0.6143 MB / 0.5115 GB, free: 1.957 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2068/0.7442, allocations: 27.94 MB / 0.5388 GB, free: 136.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00282/0.7471, allocations: 2.67 MB / 0.5414 GB, free: 135.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002675/0.7498, allocations: 0.5544 MB / 0.542 GB, free: 135.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001976/0.7518, allocations: 1.478 MB / 0.5434 GB, free: 134.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7518, allocations: 3.5 kB / 0.5434 GB, free: 134.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08852/0.8403, allocations: 60.75 MB / 0.6027 GB, free: 86.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.46, allocations: 4.5 kB / 0.6028 GB, free: 86.72 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches