Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",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.001173/0.001173, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001165/0.001165, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 222.9 MB / 241.1 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 46.42 kB / 300.1 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08802, allocations: 49.45 MB / 349.5 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.004407/0.09247, allocations: 3.301 MB / 352.8 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.09446, allocations: 1.296 MB / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002354/0.09472, allocations: 8 kB / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004366/0.09517, allocations: 127.4 kB / 354.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001016/0.09622, allocations: 422.1 kB / 354.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.09657, allocations: 142.2 kB / 354.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005996/0.09718, allocations: 430.1 kB / 355.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.0974, allocations: 133 kB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002246/0.09764, allocations: 159.3 kB / 355.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.09792, allocations: 191.2 kB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.936e-05/0.09799, allocations: 28 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003498/0.09834, allocations: 147.8 kB / 355.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.99e-05/0.09842, allocations: 63.77 kB / 355.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001907/0.09862, allocations: 183 kB / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000625/0.09925, allocations: 0.5217 MB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.09926, allocations: 0 / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.09927, allocations: 0 / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.09929, allocations: 4 kB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001487/0.1008, allocations: 0.7448 MB / 357.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.283e-05/0.1009, allocations: 11.97 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.492e-05/0.1009, allocations: 70.72 kB / 357.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005971/0.1016, allocations: 100.4 kB / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.102, allocations: 300.5 kB / 357.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.102, allocations: 29.38 kB / 357.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.773e-05/0.1021, allocations: 32.38 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.1027, allocations: 353.5 kB / 358.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1027, allocations: 0 / 358.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.1028, allocations: 19.94 kB / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.1028, allocations: 16 kB / 358.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004626/0.1033, allocations: 250.1 kB / 358.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002104/0.1054, allocations: 1.331 MB / 359.9 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004011/0.1058, allocations: 189.2 kB / 360.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.106, allocations: 93.59 kB / 360.1 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008819/0.1069, allocations: 0.8713 MB / 361 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.1069, allocations: 38.56 kB / 361.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.313e-06/0.1069, allocations: 0 / 361.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005441/0.1075, allocations: 221.2 kB / 361.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.1075, allocations: 81.09 kB / 361.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1078, allocations: 278.9 kB / 361.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.1079, allocations: 29.7 kB / 361.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.108, allocations: 251.5 kB / 361.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.865e-05/0.1081, allocations: 63.09 kB / 362 MB, free: 7.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-05/0.1082, allocations: 57.94 kB / 362 MB, free: 7.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1083, allocations: 346.7 kB / 362.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.1084, allocations: 68.61 kB / 362.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.1087, allocations: 198.4 kB / 362.6 MB, free: 6.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004106/0.1091, allocations: 292.9 kB / 362.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.1091, allocations: 0 / 362.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005207/0.1096, allocations: 324.5 kB / 363.2 MB, free: 6.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.1096, allocations: 10.81 kB / 363.2 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1097, allocations: 4 kB / 363.2 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.1097, allocations: 11.94 kB / 363.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.11, allocations: 79.83 kB / 363.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.11, allocations: 8 kB / 363.3 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.1102, allocations: 35.97 kB / 363.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.1103, allocations: 19.98 kB / 363.4 MB, free: 6.086 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001628/0.1104, allocations: 157.7 kB / 363.5 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.1105, allocations: 27.62 kB / 363.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.498e-05/0.1106, allocations: 29.73 kB / 363.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1106, allocations: 7.938 kB / 363.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1106, allocations: 0 / 363.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1106, allocations: 0 / 363.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006874/0.1113, allocations: 0.5069 MB / 364.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.1113, allocations: 4.25 kB / 364.1 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.1115, allocations: 43.97 kB / 364.2 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1115, allocations: 4 kB / 364.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.1116, allocations: 4 kB / 364.2 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-06/0.1116, allocations: 7.984 kB / 364.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1116, allocations: 0 / 364.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004978/0.1121, allocations: 423.2 kB / 364.6 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.588e-05/0.1122, allocations: 104.7 kB / 364.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.861e-05/0.1122, allocations: 4 kB / 364.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.1124, allocations: 23.98 kB / 364.7 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.1125, allocations: 7.984 kB / 364.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.1125, allocations: 12 kB / 364.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.1127, allocations: 194 kB / 364.9 MB, free: 4.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1127, allocations: 0 / 364.9 MB, free: 4.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004353/0.1131, allocations: 79.75 kB / 365 MB, free: 4.363 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008342/0.114, allocations: 0.9738 MB / 366 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000378/0.1144, allocations: 179.7 kB / 366.1 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.1144, allocations: 5.125 kB / 366.2 MB, free: 3.176 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.1145, allocations: 67.91 kB / 366.2 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004481/0.115, allocations: 32.94 kB / 366.3 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1332/0.2482, allocations: 3.239 MB / 369.5 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.2485, allocations: 0.7715 MB / 370.3 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001944/0.2487, allocations: 32.3 kB / 370.3 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.2489, allocations: 108.6 kB / 370.4 MB, free: 23.83 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2489, allocations: 1.156 kB / 370.4 MB, free: 23.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4762/0.7251, allocations: 5.124 MB / 375.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.7254, allocations: 238.5 kB / 375.8 MB, free: 23.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.944, allocations: 4 kB / 375.8 MB, free: 23.21 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/SinglePhaseInductance/SinglePhaseInductance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches