Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",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.00111/0.001111, allocations: 113.4 kB / 17.73 MB, free: 5.324 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.001243/0.001243, allocations: 188.2 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001168/0.001168, allocations: 47.94 kB / 328 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1193, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.2911/0.4105, allocations: 20.23 MB / 394.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01766/0.4282, allocations: 5.947 MB / 400.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007304/0.4356, allocations: 120.4 kB / 401 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005659/0.4413, allocations: 1.338 MB / 402.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.4515, allocations: 1.905 MB / 404.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004653/0.4562, allocations: 1.247 MB / 405.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01374/0.4699, allocations: 6.117 MB / 411.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009211/0.4791, allocations: 5.364 MB / 416.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007293/0.4865, allocations: 2.836 MB / 419.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007582/0.4941, allocations: 3.397 MB / 423.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001619/0.4957, allocations: 0.7812 MB / 423.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003308/0.499, allocations: 1.066 MB / 425 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001898/0.501, allocations: 1.94 MB / 426.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005286/0.5063, allocations: 3.345 MB / 430.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01261/0.5189, allocations: 10.3 MB / 440.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.5189, allocations: 8 kB / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5189, allocations: 0 / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002725/0.5192, allocations: 0 / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01872/0.5379, allocations: 6.589 MB / 447.2 MB, free: 7.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/0.538, allocations: 8.031 kB / 447.2 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001116/0.5391, allocations: 0.7 MB / 447.9 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004585/0.5437, allocations: 1.005 MB / 448.9 MB, free: 5.422 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007245/0.551, allocations: 3.341 MB / 452.2 MB, free: 2.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002883/0.5513, allocations: 386.8 kB / 452.6 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007755/0.5521, allocations: 0.5154 MB / 453.1 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01342/0.5655, allocations: 6.771 MB / 459.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001542/0.5657, allocations: 15.89 kB / 459.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004908/0.5662, allocations: 208 kB / 460.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002556/0.5665, allocations: 242.2 kB / 460.4 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01044/0.5769, allocations: 5.74 MB / 466.1 MB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03706/0.614, allocations: 20.84 MB / 486.9 MB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008663/0.6227, allocations: 8.539 MB / 495.5 MB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003162/0.6259, allocations: 2.089 MB / 497.6 MB, free: 3.129 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.637, allocations: 5.911 MB / 0.4917 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.789e-05/0.6371, allocations: 56.5 kB / 0.4917 GB, free: 13.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 3.857e-06/0.6371, allocations: 0 / 0.4917 GB, free: 13.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.0196/0.6567, allocations: 10.27 MB / 0.5018 GB, free: 2.512 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.6568, allocations: 77.41 kB / 0.5018 GB, free: 2.426 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004157/0.661, allocations: 2.916 MB / 0.5047 GB, free: 15.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001864/0.6612, allocations: 61.7 kB / 0.5047 GB, free: 15.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.6627, allocations: 2.353 MB / 0.507 GB, free: 13.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005677/0.6632, allocations: 0.7664 MB / 0.5078 GB, free: 12.28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007395/0.664, allocations: 0.5176 MB / 0.5083 GB, free: 11.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.968e-05/0.6641, allocations: 301.1 kB / 0.5086 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001927/0.666, allocations: 1.271 MB / 0.5098 GB, free: 10.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/0.6685, allocations: 2.183 MB / 0.5119 GB, free: 7.594 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004612/0.6731, allocations: 3.668 MB / 0.5155 GB, free: 3.527 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/0.6732, allocations: 8 kB / 0.5155 GB, free: 3.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007014/0.6802, allocations: 4.45 MB / 0.5199 GB, free: 15 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.766e-05/0.6802, allocations: 20 kB / 0.5199 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.578e-05/0.6803, allocations: 31.94 kB / 0.5199 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.6815, allocations: 0.5136 MB / 0.5204 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002473/0.6839, allocations: 0.6942 MB / 0.5211 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008559/0.6925, allocations: 10.18 MB / 0.5311 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/0.6952, allocations: 175.8 kB / 0.5312 GB, free: 2.668 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002496/0.6955, allocations: 124.1 kB / 0.5313 GB, free: 2.547 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002851/0.6984, allocations: 1.523 MB / 0.5328 GB, free: 1.012 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006654/0.699, allocations: 328 kB / 0.5331 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006338/0.7054, allocations: 3.867 MB / 0.5369 GB, free: 12.72 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.7054, allocations: 20 kB / 0.5369 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.7054, allocations: 11.94 kB / 0.537 GB, free: 12.69 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-05/0.7055, allocations: 11.95 kB / 0.537 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01356/0.719, allocations: 8.467 MB / 0.5452 GB, free: 4.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/0.7191, allocations: 8.469 kB / 0.5452 GB, free: 4.012 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/0.7207, allocations: 387.4 kB / 0.5456 GB, free: 3.633 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/0.7225, allocations: 0.7328 MB / 0.5463 GB, free: 2.875 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001485/0.7227, allocations: 59.97 kB / 0.5464 GB, free: 2.816 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2409/0.9636, allocations: 16.59 MB / 0.5626 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.9636, allocations: 15.17 kB / 0.5626 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009381/0.973, allocations: 5.547 MB / 0.568 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/0.975, allocations: 0.6493 MB / 0.5686 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003649/0.9753, allocations: 58.94 kB / 0.5687 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/0.9768, allocations: 137.1 kB / 0.5688 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004873/0.9773, allocations: 171.2 kB / 0.569 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/0.9775, allocations: 65.59 kB / 0.5691 GB, free: 133.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003024/0.9805, allocations: 1.967 MB / 0.571 GB, free: 132.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.9805, allocations: 1.938 kB / 0.571 GB, free: 132.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003476/0.984, allocations: 0.9329 MB / 0.5719 GB, free: 132.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * 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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009271/0.9933, allocations: 6.258 MB / 0.578 GB, free: 129.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006381/0.9997, allocations: 3.967 MB / 0.5819 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.9998, allocations: 1.594 kB / 0.5819 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003874/1.004, allocations: 2.653 MB / 0.5845 GB, free: 126.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00378/1.007, allocations: 0.8471 MB / 0.5853 GB, free: 126 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04296/1.05, allocations: 33.28 MB / 0.6178 GB, free: 99.11 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002299/1.053, allocations: 3.29 MB / 0.621 GB, free: 95.79 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002057/1.055, allocations: 0.7578 MB / 0.6217 GB, free: 95.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001794/1.057, allocations: 1.948 MB / 0.6236 GB, free: 93.07 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/1.057, allocations: 0 / 0.6236 GB, free: 93.07 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1205/1.177, allocations: 82.51 MB / 0.7042 GB, free: 10.42 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.16/20.34, allocations: 8.734 kB / 0.7042 GB, free: 10.41 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches