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.001574/0.001574, allocations: 114.3 kB / 17.74 MB, free: 5.355 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.001517/0.001517, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.428/1.428, allocations: 205.1 MB / 224.6 MB, free: 12.24 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.001857/0.001858, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.106, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.2079/0.314, allocations: 20.23 MB / 394.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01356/0.3277, allocations: 5.942 MB / 400.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004308/0.3321, allocations: 122.3 kB / 401 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004726/0.3368, allocations: 1.338 MB / 402.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008341/0.3452, allocations: 1.912 MB / 404.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004789/0.35, allocations: 1.24 MB / 405.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.3617, allocations: 6.118 MB / 411.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008042/0.3698, allocations: 5.368 MB / 416.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005088/0.3749, allocations: 2.821 MB / 419.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006642/0.3816, allocations: 3.389 MB / 423.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002216/0.3839, allocations: 0.7852 MB / 423.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003986/0.3879, allocations: 1.066 MB / 425 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002728/0.3906, allocations: 1.948 MB / 426.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006279/0.3969, allocations: 3.353 MB / 430.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.4108, allocations: 10.32 MB / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.4109, allocations: 4 kB / 440.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4109, allocations: 0 / 440.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003241/0.4112, allocations: 0 / 440.6 MB, free: 13.81 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.01972/0.431, allocations: 6.727 MB / 447.4 MB, free: 6.996 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.431, allocations: 8.031 kB / 447.4 MB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002271/0.4333, allocations: 0.7039 MB / 448.1 MB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00565/0.439, allocations: 1.036 MB / 449.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007709/0.4467, allocations: 3.363 MB / 452.5 MB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004287/0.4472, allocations: 386.8 kB / 452.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/0.4488, allocations: 0.5076 MB / 453.3 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01632/0.4651, allocations: 6.767 MB / 460.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002421/0.4654, allocations: 15.88 kB / 460.1 MB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001348/0.4667, allocations: 212 kB / 460.3 MB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003202/0.4671, allocations: 242.2 kB / 460.6 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/0.4808, allocations: 5.736 MB / 466.3 MB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04353/0.5244, allocations: 20.89 MB / 487.2 MB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/0.5352, allocations: 8.556 MB / 495.8 MB, free: 4.961 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004261/0.5395, allocations: 2.089 MB / 497.8 MB, free: 2.871 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01373/0.5533, allocations: 5.928 MB / 0.492 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.408e-05/0.5535, allocations: 60.5 kB / 0.492 GB, free: 12.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 7.765e-06/0.5535, allocations: 0 / 0.492 GB, free: 12.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02461/0.5781, allocations: 10.35 MB / 0.5021 GB, free: 2.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.5782, allocations: 77.41 kB / 0.5022 GB, free: 2.074 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006394/0.5846, allocations: 2.916 MB / 0.505 GB, free: 15.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003487/0.585, allocations: 61.7 kB / 0.5051 GB, free: 15.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0023/0.5873, allocations: 2.419 MB / 0.5075 GB, free: 12.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001091/0.5884, allocations: 0.8057 MB / 0.5083 GB, free: 11.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/0.5897, allocations: 0.5179 MB / 0.5088 GB, free: 11.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.5898, allocations: 301.1 kB / 0.5091 GB, free: 11.01 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002566/0.5924, allocations: 1.271 MB / 0.5103 GB, free: 9.734 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003292/0.5957, allocations: 2.175 MB / 0.5124 GB, free: 7.156 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00617/0.6019, allocations: 3.672 MB / 0.516 GB, free: 3.086 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.375e-05/0.6019, allocations: 8 kB / 0.516 GB, free: 3.078 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.009162/0.6111, allocations: 4.464 MB / 0.5204 GB, free: 14.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.862e-05/0.6112, allocations: 20 kB / 0.5204 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.218e-05/0.6113, allocations: 28 kB / 0.5204 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/0.6127, allocations: 0.5058 MB / 0.5209 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/0.6155, allocations: 0.6942 MB / 0.5216 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.6268, allocations: 10.19 MB / 0.5315 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/0.6298, allocations: 179.8 kB / 0.5317 GB, free: 2.211 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005356/0.6304, allocations: 132 kB / 0.5318 GB, free: 2.082 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.003853/0.6343, allocations: 1.516 MB / 0.5333 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001156/0.6354, allocations: 333.9 kB / 0.5336 GB, free: 232 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008448/0.6439, allocations: 3.871 MB / 0.5374 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.6439, allocations: 20 kB / 0.5374 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.619e-05/0.644, allocations: 8 kB / 0.5374 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-05/0.644, allocations: 15.89 kB / 0.5375 GB, free: 12.21 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01909/0.6631, allocations: 8.468 MB / 0.5457 GB, free: 3.555 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-05/0.6632, allocations: 4 kB / 0.5457 GB, free: 3.551 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001877/0.6651, allocations: 387.5 kB / 0.5461 GB, free: 3.172 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002186/0.6673, allocations: 0.7249 MB / 0.5468 GB, free: 2.422 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003488/0.6677, allocations: 59.97 kB / 0.5469 GB, free: 2.363 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2111/0.8787, allocations: 16.61 MB / 0.5631 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/0.8788, allocations: 3.875 kB / 0.5631 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009793/0.8886, allocations: 5.567 MB / 0.5685 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001996/0.8906, allocations: 0.6741 MB / 0.5692 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007487/0.8914, allocations: 52.36 kB / 0.5692 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.8932, allocations: 141.1 kB / 0.5694 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005036/0.8937, allocations: 172.9 kB / 0.5695 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000174/0.8939, allocations: 61.02 kB / 0.5696 GB, free: 132.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003661/0.8976, allocations: 1.965 MB / 0.5715 GB, free: 131.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8976, allocations: 0 / 0.5715 GB, free: 131.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004392/0.902, allocations: 0.9351 MB / 0.5724 GB, free: 131.4 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.01052/0.9126, allocations: 6.274 MB / 0.5786 GB, free: 128.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006687/0.9193, allocations: 3.967 MB / 0.5824 GB, free: 126.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/0.9193, allocations: 4.594 kB / 0.5824 GB, free: 126.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004659/0.924, allocations: 2.666 MB / 0.585 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004827/0.9289, allocations: 0.8525 MB / 0.5859 GB, free: 124.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0477/0.9766, allocations: 33.44 MB / 0.6185 GB, free: 97.71 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002805/0.9795, allocations: 3.294 MB / 0.6217 GB, free: 94.38 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0024/0.9819, allocations: 0.7617 MB / 0.6225 GB, free: 93.62 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002323/0.9842, allocations: 1.94 MB / 0.6244 GB, free: 91.68 MB / 478.1 MB Notification: Performance of SimCode: time 2.104e-06/0.9843, allocations: 0 / 0.6244 GB, free: 91.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2044/1.189, allocations: 81.82 MB / 0.7043 GB, free: 9.711 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17/18.18, allocations: 16.73 kB / 0.7043 GB, free: 9.695 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