Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.Components.SinglePhaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001165/0.00117, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 58.53 kB / 307.1 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09173/0.09303, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.005081/0.09815, allocations: 3.29 MB / 360.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002435/0.1006, allocations: 1.421 MB / 362.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003572/0.101, allocations: 7.938 kB / 362.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005636/0.1016, allocations: 143.1 kB / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001269/0.1029, allocations: 417.7 kB / 362.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.1034, allocations: 195.4 kB / 363 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007421/0.1041, allocations: 450.1 kB / 363.5 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002726/0.1044, allocations: 160.5 kB / 363.6 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002785/0.1047, allocations: 171.3 kB / 363.8 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003358/0.1051, allocations: 199.2 kB / 364 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.235e-05/0.1052, allocations: 36 kB / 364 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004298/0.1056, allocations: 167.9 kB / 364.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.789e-05/0.1057, allocations: 87.62 kB / 364.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.1059, allocations: 199 kB / 364.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007258/0.1066, allocations: 0.545 MB / 365 MB, free: 6.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1067, allocations: 0 / 365 MB, free: 6.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1067, allocations: 0 / 365 MB, free: 6.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.1067, allocations: 0 / 365 MB, free: 6.543 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.001696/0.1084, allocations: 0.7487 MB / 365.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1084, allocations: 8.031 kB / 365.8 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.862e-05/0.1085, allocations: 70.72 kB / 365.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000872/0.1094, allocations: 116.4 kB / 366 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.1099, allocations: 309.6 kB / 366.3 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.1099, allocations: 29.38 kB / 366.3 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.11, allocations: 28.38 kB / 366.3 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007345/0.1107, allocations: 365.4 kB / 366.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1108, allocations: 0 / 366.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/0.1108, allocations: 12 kB / 366.7 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1108, allocations: 8 kB / 366.7 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006338/0.1115, allocations: 250 kB / 366.9 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002137/0.1136, allocations: 1.323 MB / 368.3 MB, free: 3.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.114, allocations: 197.1 kB / 368.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.1142, allocations: 81.69 kB / 368.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001048/0.1152, allocations: 1.2 MB / 369.7 MB, free: 1.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.1153, allocations: 38.56 kB / 369.8 MB, free: 1.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.1153, allocations: 0 / 369.8 MB, free: 1.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005625/0.1158, allocations: 229.2 kB / 370 MB, free: 1.133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.1159, allocations: 85.11 kB / 370.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/0.1162, allocations: 287 kB / 370.4 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.1163, allocations: 29.7 kB / 370.4 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.1164, allocations: 239.4 kB / 370.6 MB, free: 484 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.958e-05/0.1165, allocations: 63.11 kB / 370.7 MB, free: 420 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1166, allocations: 58.02 kB / 370.7 MB, free: 356 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1167, allocations: 338.8 kB / 371.1 MB, free: 8 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1422/0.2589, allocations: 66.55 kB / 371.1 MB, free: 20.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.2591, allocations: 197.5 kB / 371.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/0.2595, allocations: 289.8 kB / 371.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.2595, allocations: 4.922 kB / 371.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005642/0.2601, allocations: 316.9 kB / 371.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2601, allocations: 9.938 kB / 371.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.2601, allocations: 8.5 kB / 371.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.2602, allocations: 8.438 kB / 372 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.2605, allocations: 79.34 kB / 372 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.2605, allocations: 11.23 kB / 372 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.2607, allocations: 37.61 kB / 372.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.2607, allocations: 16.88 kB / 372.1 MB, free: 19.64 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.0001366/0.2609, allocations: 153.5 kB / 372.2 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-05/0.261, allocations: 30.39 kB / 372.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.261, allocations: 29.88 kB / 372.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.261, allocations: 3 kB / 372.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.261, allocations: 0 / 372.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.261, allocations: 2.438 kB / 372.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006426/0.2617, allocations: 0.5178 MB / 372.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2617, allocations: 1.188 kB / 372.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002218/0.2619, allocations: 48.59 kB / 372.9 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.262, allocations: 2.891 kB / 372.9 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.262, allocations: 5.75 kB / 372.9 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.262, allocations: 10.2 kB / 372.9 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.262, allocations: 3.594 kB / 372.9 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000505/0.2625, allocations: 419.9 kB / 373.3 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.2626, allocations: 109.8 kB / 373.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.2626, allocations: 6.156 kB / 373.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.2628, allocations: 15.42 kB / 373.4 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.2629, allocations: 14.39 kB / 373.5 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.2629, allocations: 4.984 kB / 373.5 MB, free: 18.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.2631, allocations: 201.1 kB / 373.7 MB, free: 18.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2631, allocations: 4.062 kB / 373.7 MB, free: 18.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004385/0.2635, allocations: 83.19 kB / 373.7 MB, free: 18.78 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.0006511/0.2642, allocations: 0.9607 MB / 374.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003987/0.2646, allocations: 201.1 kB / 374.9 MB, free: 17.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2646, allocations: 0.8438 kB / 374.9 MB, free: 17.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.2648, allocations: 73.27 kB / 375 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000447/0.2652, allocations: 34.8 kB / 375 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00319/0.2684, allocations: 3.162 MB / 378.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.2686, allocations: 0.772 MB / 378.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.2688, allocations: 36.5 kB / 379 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.2689, allocations: 110.3 kB / 379.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2689, allocations: 0 / 379.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02418/0.2931, allocations: 5.423 MB / 384.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.661/7.954, allocations: 8.578 kB / 384.5 MB, free: 14.19 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.csv","/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_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches