Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.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.PolyphaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001435/0.001435, allocations: 108.7 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00205/0.002049, allocations: 201.8 kB / 18.26 MB, free: 5.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 227.4 MB / 246.4 MB, free: 9.074 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 57.86 kB / 306.6 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09846, allocations: 50.52 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance): time 0.009229/0.1077, allocations: 6.61 MB / 363.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004686/0.1125, allocations: 2.227 MB / 365.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.114, allocations: 47.81 kB / 366 MB, free: 5.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001371/0.1154, allocations: 306.3 kB / 366.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002886/0.1183, allocations: 0.7692 MB / 367 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.1194, allocations: 318.3 kB / 367.3 MB, free: 3.777 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003956/0.1234, allocations: 3.176 MB / 370.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1691/0.2925, allocations: 2.008 MB / 372.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.2943, allocations: 1.3 MB / 373.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.2963, allocations: 1.658 MB / 375.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004329/0.2967, allocations: 297.9 kB / 375.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008445/0.2976, allocations: 430.5 kB / 376.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000659/0.2982, allocations: 0.8469 MB / 377 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.2995, allocations: 1.471 MB / 378.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00394/0.3034, allocations: 4.064 MB / 382.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3034, allocations: 3.781 kB / 382.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3035, allocations: 0 / 382.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001044/0.3036, allocations: 0 / 382.6 MB, free: 7.316 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: 588 * Number of variables: 588 Notification: Performance of Generate backend data structure: time 0.007484/0.3111, allocations: 3.492 MB / 386.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.3111, allocations: 10.34 kB / 386.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004225/0.3115, allocations: 335.4 kB / 386.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004196/0.3157, allocations: 0.7582 MB / 387.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003453/0.3192, allocations: 1.667 MB / 388.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.3194, allocations: 174 kB / 389 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005087/0.3199, allocations: 225.8 kB / 389.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006955/0.3268, allocations: 3.21 MB / 392.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.272e-05/0.3269, allocations: 0 / 392.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002678/0.3272, allocations: 92.78 kB / 392.5 MB, free: 2.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.706e-05/0.3273, allocations: 67.19 kB / 392.6 MB, free: 2.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004417/0.3317, allocations: 2.864 MB / 395.5 MB, free: 0.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01437/0.3461, allocations: 9.244 MB / 404.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00436/0.3505, allocations: 4.375 MB / 409.1 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001084/0.3516, allocations: 0.8195 MB / 409.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00413/0.3558, allocations: 3.148 MB / 413 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.3558, allocations: 45.52 kB / 413.1 MB, free: 144 kB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 3.647e-06/0.3558, allocations: 3.984 kB / 413.1 MB, free: 140 kB / 318.1 MB Notification: Performance of matching and sorting (n=100): time 0.007681/0.3635, allocations: 4.199 MB / 417.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.3636, allocations: 115.2 kB / 417.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.3655, allocations: 1.617 MB / 419 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.88e-05/0.3656, allocations: 48.33 kB / 419.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007412/0.3664, allocations: 1.11 MB / 420.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.3667, allocations: 364.2 kB / 420.5 MB, free: 8.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003569/0.367, allocations: 238.8 kB / 420.8 MB, free: 8.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3672, allocations: 353.9 kB / 421.1 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009204/0.3681, allocations: 0.6349 MB / 421.8 MB, free: 7.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.3693, allocations: 1.016 MB / 422.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002124/0.3714, allocations: 1.695 MB / 424.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.383e-06/0.3714, allocations: 7.938 kB / 424.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.00316/0.3746, allocations: 1.941 MB / 426.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3746, allocations: 16.27 kB / 426.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.3747, allocations: 12 kB / 426.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003531/0.375, allocations: 133.4 kB / 426.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.3762, allocations: 334.2 kB / 426.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/0.3791, allocations: 3.425 MB / 430.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.3802, allocations: 103.5 kB / 430.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.3803, allocations: 52.23 kB / 430.5 MB, free: 14.17 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (155): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001433/0.3818, allocations: 0.8299 MB / 431.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003774/0.3822, allocations: 150.2 kB / 431.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002416/0.3846, allocations: 1.395 MB / 432.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.3846, allocations: 12 kB / 432.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.3846, allocations: 8 kB / 432.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.3846, allocations: 7.922 kB / 432.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004443/0.3891, allocations: 2.442 MB / 435.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.3891, allocations: 8.094 kB / 435.3 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008936/0.39, allocations: 190.1 kB / 435.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007802/0.3908, allocations: 263.2 kB / 435.8 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.391, allocations: 35.97 kB / 435.8 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006477/0.3975, allocations: 6.263 MB / 442.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3975, allocations: 4.031 kB / 442.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004114/0.4016, allocations: 2.542 MB / 444.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007161/0.4023, allocations: 255.1 kB / 444.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003917/0.4027, allocations: 31.94 kB / 444.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.4038, allocations: 95.89 kB / 445 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002447/0.404, allocations: 95.3 kB / 445.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-05/0.4041, allocations: 31.98 kB / 445.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001952/0.4061, allocations: 1.132 MB / 446.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4061, allocations: 0 / 446.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00187/0.408, allocations: 444 kB / 446.7 MB, free: 13.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (inductor_e.inductor[1].i,inductor_e.inductor[2].i,inductor_e.inductor[3].i,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im,converter_s[1].Phi.re,converter_s[2].Phi.im,converter_s[3].Phi.im) * 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 (76): * Single equations (assignments): 73 * 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,16,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004469/0.4125, allocations: 3.164 MB / 449.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003288/0.4158, allocations: 1.903 MB / 451.7 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/0.4158, allocations: 4 kB / 451.7 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.4177, allocations: 1.167 MB / 452.9 MB, free: 7.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002236/0.42, allocations: 284 kB / 453.2 MB, free: 6.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03481/0.4548, allocations: 19.91 MB / 473.1 MB, free: 2.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00269/0.4576, allocations: 2.105 MB / 475.2 MB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001529/0.4591, allocations: 455.5 kB / 475.7 MB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001468/0.4606, allocations: 0.8312 MB / 476.5 MB, free: 14.68 MB / 398.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4606, allocations: 0 / 476.5 MB, free: 14.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6177/1.078, allocations: 37.14 MB / 0.5016 GB, free: 9.957 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004284/1.079, allocations: 254.8 kB / 0.5018 GB, free: 9.695 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.68/3.759, allocations: 0 / 0.5018 GB, free: 9.695 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/PolyphaseInductance/PolyphaseInductance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches