Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",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.001731/0.001731, allocations: 102.9 kB / 17.58 MB, free: 5.414 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.002672/0.002672, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.412/2.412, allocations: 205.1 MB / 224.4 MB, free: 12.33 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.002484/0.002484, allocations: 56.14 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1442, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.02938/0.1737, allocations: 16.59 MB / 344 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01607/0.1898, allocations: 5.441 MB / 349.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004467/0.1943, allocations: 91.62 kB / 349.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005988/0.2004, allocations: 1.235 MB / 350.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007994/0.2084, allocations: 1.607 MB / 352.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005104/0.2136, allocations: 1.064 MB / 353.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.225, allocations: 5.098 MB / 358.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01029/0.2354, allocations: 3.834 MB / 362.3 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005844/0.2413, allocations: 2.165 MB / 364.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006704/0.248, allocations: 2.6 MB / 367.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002906/0.251, allocations: 0.6171 MB / 367.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004308/0.2553, allocations: 0.8435 MB / 368.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003544/0.2589, allocations: 1.418 MB / 370 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008091/0.267, allocations: 2.633 MB / 372.6 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2475/0.5146, allocations: 8.004 MB / 380.6 MB, free: 25.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.151e-05/0.5146, allocations: 0 / 380.6 MB, free: 25.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5146, allocations: 0 / 380.6 MB, free: 25.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003163/0.515, allocations: 0.6094 kB / 380.6 MB, free: 25.3 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.02356/0.5386, allocations: 5.377 MB / 386 MB, free: 23.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/0.5386, allocations: 10.12 kB / 386 MB, free: 23.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00216/0.5408, allocations: 0.6047 MB / 386.6 MB, free: 23.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009383/0.5502, allocations: 0.9903 MB / 387.6 MB, free: 23.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009334/0.5596, allocations: 2.775 MB / 390.4 MB, free: 22.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005082/0.5601, allocations: 303.8 kB / 390.7 MB, free: 22.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001943/0.5621, allocations: 404.4 kB / 391.1 MB, free: 22.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0195/0.5816, allocations: 5.214 MB / 396.3 MB, free: 21.56 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/0.5818, allocations: 1.062 kB / 396.3 MB, free: 21.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008546/0.5827, allocations: 165.1 kB / 396.4 MB, free: 21.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002854/0.583, allocations: 179.2 kB / 396.6 MB, free: 21.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01413/0.5971, allocations: 4.438 MB / 401.1 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03953/0.6368, allocations: 16.8 MB / 417.9 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009767/0.6466, allocations: 8.412 MB / 426.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004979/0.6516, allocations: 1.708 MB / 428 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01418/0.6658, allocations: 4.965 MB / 432.9 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.207e-05/0.666, allocations: 59.62 kB / 433 MB, free: 6.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 5.64e-06/0.666, allocations: 0 / 433 MB, free: 6.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=159): time 0.0191/0.6851, allocations: 6.105 MB / 439.1 MB, free: 276 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.936e-05/0.6852, allocations: 68.72 kB / 439.2 MB, free: 196 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005989/0.6912, allocations: 2.289 MB / 441.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003303/0.6916, allocations: 53.7 kB / 441.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001978/0.6936, allocations: 1.861 MB / 443.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008888/0.6945, allocations: 0.5432 MB / 443.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001146/0.6957, allocations: 399.6 kB / 444.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.6958, allocations: 305.1 kB / 444.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002365/0.6982, allocations: 0.8358 MB / 445.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003055/0.7013, allocations: 1.563 MB / 447 MB, free: 7.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005501/0.7068, allocations: 2.552 MB / 449.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-05/0.7068, allocations: 8 kB / 449.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.00777/0.7146, allocations: 2.878 MB / 452.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.642e-05/0.7147, allocations: 12.03 kB / 452.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.305e-05/0.7148, allocations: 28 kB / 452.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004801/0.7153, allocations: 128.9 kB / 452.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003092/0.7184, allocations: 0.5345 MB / 453.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002606/0.721, allocations: 1.998 MB / 455.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002893/0.7239, allocations: 111.9 kB / 455.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003081/0.7242, allocations: 99.98 kB / 455.4 MB, free: 15.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * 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 (269): * Single equations (assignments): 267 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003221/0.7275, allocations: 1.188 MB / 456.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008481/0.7283, allocations: 252.9 kB / 456.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006379/0.7347, allocations: 2.431 MB / 459.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.995e-05/0.7348, allocations: 12 kB / 459.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.7348, allocations: 14.41 kB / 459.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.7348, allocations: 11.91 kB / 459.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01425/0.7491, allocations: 5.762 MB / 465 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.7491, allocations: 4.219 kB / 465 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001937/0.7511, allocations: 297.7 kB / 465.3 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.7524, allocations: 321.1 kB / 465.6 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/0.7526, allocations: 43.92 kB / 465.7 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009968/0.7626, allocations: 6.959 MB / 472.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.7626, allocations: 4 kB / 472.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009516/0.7721, allocations: 3.544 MB / 476.2 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/0.7741, allocations: 0.4934 MB / 476.7 MB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/0.7752, allocations: 39.98 kB / 476.7 MB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002598/0.7779, allocations: 75.94 kB / 476.8 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006004/0.7785, allocations: 117.1 kB / 476.9 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002884/0.7788, allocations: 49.73 kB / 476.9 MB, free: 9.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005552/0.7844, allocations: 1.549 MB / 478.5 MB, free: 7.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.7845, allocations: 0 / 478.5 MB, free: 7.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006155/0.7906, allocations: 0.6719 MB / 479.2 MB, free: 7.059 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (132): * Single equations (assignments): 129 * 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,5,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.01278/0.8035, allocations: 4.172 MB / 483.3 MB, free: 2.824 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01184/0.8154, allocations: 2.896 MB / 486.2 MB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/0.8155, allocations: 3.938 kB / 486.2 MB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004989/0.8205, allocations: 1.438 MB / 487.7 MB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007412/0.828, allocations: 0.6043 MB / 488.3 MB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07736/0.9054, allocations: 27.66 MB / 0.5038 GB, free: 60 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004666/0.9101, allocations: 2.669 MB / 0.5065 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004023/0.9142, allocations: 0.5552 MB / 0.507 GB, free: 12.81 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004173/0.9184, allocations: 1.464 MB / 0.5084 GB, free: 11.34 MB / 430.1 MB Notification: Performance of SimCode: time 2.064e-06/0.9185, allocations: 0 / 0.5084 GB, free: 11.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3571/1.276, allocations: 59.99 MB / 0.567 GB, free: 153.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.08/17.36, allocations: 5.312 kB / 0.567 GB, free: 153.9 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches